pari: trunk r77 - in /trunk/config: ./ scripts/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue Oct 17 12:48:11 MST 2006


Author: pari
Date: Tue Oct 17 14:48:11 2006
New Revision: 77

URL: http://svn.digium.com/view/asterisk-gui?rev=77&view=rev
Log:
fixed a small rendering problem in appliance page and added some tooltips

Removed:
    trunk/config/extensions.html
Modified:
    trunk/config/cfgappliance.html
    trunk/config/menus.html
    trunk/config/options.html
    trunk/config/scripts/tooltip.js
    trunk/config/trunks.html

Modified: trunk/config/cfgappliance.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgappliance.html?rev=77&r1=76&r2=77&view=diff
==============================================================================
--- trunk/config/cfgappliance.html (original)
+++ trunk/config/cfgappliance.html Tue Oct 17 14:48:11 2006
@@ -149,7 +149,7 @@
 	}
 
 	function registerajax() {
-		accordion = new Rico.Accordion( $('configpanel'), { panelHeight:280,onHideTab:fademainscreen,onShowTab:showmainscreen });
+		accordion = new Rico.Accordion( $('configpanel'), { panelHeight:360,onHideTab:fademainscreen,onShowTab:showmainscreen });
 		$('borderbox').style.height = $('screenholder').clientHeight;
 		$('titlebar').style.width = $('borderbox').clientWidth - 12;
 		for (var i = 0; i < panels.length; i++) {

Modified: trunk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/menus.html?rev=77&r1=76&r2=77&view=diff
==============================================================================
--- trunk/config/menus.html (original)
+++ trunk/config/menus.html Tue Oct 17 14:48:11 2006
@@ -22,6 +22,7 @@
 <script src="scripts/prototype.js"></script>
 <script src="scripts/rico.js"></script>
 <script src="scripts/astman.js"></script>
+<script src="scripts/tooltip.js"></script>
 <link href="stylesheets/rico.css" media="all" rel="Stylesheet" type="text/css" />
 <link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
 
@@ -836,8 +837,8 @@
 		</td>
 		<td valign=top align="right" width=390>
 						<table align="center" width="390">
-						<tr><td width="60" align=left>Name:</td><td align=left><input id='comment'  onKeyUp="enable_savecancel()"  pattern='^[a-zA-Z_0-9 ]*$' disabled ></td></tr>
-						<tr><td colspan=2>Steps:</td></tr>
+						<tr onmouseover="show_tooltip('en', 'menus', 0);"><td width="60" align=left>Name:</td><td align=left><input id='comment'  onKeyUp="enable_savecancel()"  pattern='^[a-zA-Z_0-9 ]*$' disabled ></td></tr>
+						<tr onmouseover="show_tooltip('en', 'menus', 1);"><td colspan=2>Steps:</td></tr>
 						<tr><td align=center colspan=2> 
 										<TABLE>
 										<tr><td ><select id='steps' size=5  style="width:310px" onClick="step_onselect()" disabled></select></td>
@@ -849,7 +850,7 @@
 										</TABLE>
 								</td>
 						</tr>
-						<tr><td colspan=2>Add a new Step:</td></tr>
+						<tr  onmouseover="show_tooltip('en', 'menus',2);"><td colspan=2>Add a new Step:</td></tr>
 						<tr><td colspan=2>&nbsp;
 								<select id='newstep_action' disabled onChange="update_newstep_var()">
 									<option value=""> -- Select --</option>
@@ -1082,11 +1083,9 @@
 								</td>
 						</tr>
 						
-						<tr><td colspan=2>&nbsp;<input type=checkbox id=allowexten disabled onclick="$('savevmenu').disabled=false;$('cancel').disabled=false;"> Dial other Extensions?&nbsp;
-								</td>
-						</tr>
+						<tr onmouseover="show_tooltip('en', 'menus', 3);"><td colspan=2>&nbsp;<input type=checkbox id=allowexten disabled onclick="$('savevmenu').disabled=false;$('cancel').disabled=false;"> Dial other Extensions?&nbsp;</td></tr>
 						<tr><td colspan=2 height=6></td></tr>
-						<tr><td colspan=2>'Keypress' Events</td></tr>
+						<tr onmouseover="show_tooltip('en', 'menus', 4);"><td colspan=2>'Keypress' Events</td></tr>
 						<tr><td colspan=2>
 										<div  style="width=390px;">
 										<table cellpadding=3 cellspacing=0 width="100%">
@@ -1136,6 +1135,7 @@
 		</td>
 	</tr>
 </table>
+<div id='tooltip' style="margin-left:5px;height: 60px; width:575px; overflow :auto; font-family : Trebuchet MS, Arial, Helvetica, sans-serif;font-size: 11px; "></div>
 </div>
 <SCRIPT LANGUAGE="JavaScript">
 <!--

Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?rev=77&r1=76&r2=77&view=diff
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Tue Oct 17 14:48:11 2006
@@ -91,12 +91,14 @@
 			method: 'get',
 			asynchronous: true,
 			onSuccess: function() { 
+				setTimeout("$('status_message').style.display='none'",sc_displaytime);
 				$('status').innerHTML = " <I> Configuration Saved ! </I>";
 				$('save').disabled=true;
 				$('cancel').disabled=true;
 				default_bindaddress = $('bindaddr').value; default_port = $('bindport').value ; default_httptimeout = $('httptimeout').value;
 			},
 			onFailure: function(t) {
+				$('status_message').style.display='none';
 				alert("Config Error: " + t.status + ": " + t.statusText);
 			},
 		};
@@ -108,6 +110,7 @@
 
 
 function update_guisettings_http(){
+$('status_message').style.display="block";
 	var opt = {
 			method: 'get',
 			asynchronous: true,
@@ -193,6 +196,7 @@
 
 managerconf_callbacks.loaded = function() {
 	$('hiddenfield2').selectitem(0);
+	$('message_text').innerHTML = " Saving Changes ... ";
 	parent.loadscreen(this);
 	default_bindaddress = $('bindaddr').value; default_port = $('bindport').value ; default_httptimeout = $('httptimeout').value;
 	$('save').disabled=true;
@@ -243,4 +247,9 @@
 </table>
 <div id='tooltip' style="margin-left:5px;height: 60px; width:575px; overflow :auto; font-family : Trebuchet MS, Arial, Helvetica, sans-serif;font-size: 11px; "></div>
 </div>
+<SCRIPT LANGUAGE="JavaScript">
+<!--
+showdiv_statusmessage();
+//-->
+</SCRIPT>
 </body>

Modified: trunk/config/scripts/tooltip.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/tooltip.js?rev=77&r1=76&r2=77&view=diff
==============================================================================
--- trunk/config/scripts/tooltip.js (original)
+++ trunk/config/scripts/tooltip.js Tue Oct 17 14:48:11 2006
@@ -171,7 +171,6 @@
 	// Tooltips for Options (options)
 	tooltips['options']= new Object;
 	tooltips['options'].en = new Array;
-
 	tooltips['options'].en[0] = "<BR><B>Current Password:</B> Please enter your existing password";
 	tooltips['options'].en[1] = "<BR><B>New Password:</B> Enter the New Password";
 	tooltips['options'].en[2] = "<BR><B>Retype New Password:</B> Retype New Password ";
@@ -183,7 +182,6 @@
 	// Tooltips for status(status)
 	tooltips['status']= new Object;
 	tooltips['status'].en = new Array;
-
 	tooltips['status'].en[0] = "<BR><B>List of active channels:</B> Shows the list of active channels ";
 	tooltips['status'].en[1] = "<BR><B>Refresh:</B> Refresh the list of active channels";
 	tooltips['status'].en[2] = "<BR><B>Transfer:</B> Transfer selected channel";
@@ -192,7 +190,18 @@
 	// Tooltips for Service Providers (trunks)
 	tooltips['trunks']= new Object;
 	tooltips['trunks'].en = new Array;
-
-	tooltips['trunks'].en[0] = "<BR><B>Analog/Voip Trunks:</B> Analog or Voip trunks .. ";
-	tooltips['trunks'].en[1] = "<BR><B>Provider:</B> Select a Provider";
-	tooltips['trunks'].en[2] = "<BR><B>Lines:</B> Select a Analog Line";
+	tooltips['trunks'].en[0] = "<BR><B>Analog/Voip Trunks:</B> Analog lines attached to analog interfaces of the PBX where as<BR> a Voice over IP (VoIP) connection provided by an Internet Telephony Service Provide (ITSP).";
+	tooltips['trunks'].en[1] = "<BR><B>Provider:</B> Please select provider of your voice transport service.";
+	tooltips['trunks'].en[2] = "<BR><B>Lines:</B> Individual lines of the PBX Ex: Analog Port #3: The third analog port of the PBX.";
+	tooltips['trunks'].en[3] = "<BR><B>Username:</B> The username for your account with the provider - please contact your provider if you do not know it.";
+	tooltips['trunks'].en[4] = "<BR><B>Password:</B> The password for your account with the provider - please contact your provider if you do not know it.";
+	 
+	// Tooltips for Voicemenus (menus)
+	tooltips['menus']= new Object;
+	tooltips['menus'].en = new Array;
+	tooltips['menus'].en[0] = "<BR><B>Name:</B> A name for the Voice Menu";
+	tooltips['menus'].en[1] = "<BR><B>Steps:</B> A listing of the actions performed when a call enters the menu.";
+	tooltips['menus'].en[2] = "<BR><B>Add a new step:</B>Add additional steps performed during the menu.";
+	tooltips['menus'].en[3] = "<BR><B>Dial other Extensions:</B>Is the caller allowed to dial extensions other than the ones defined below?";
+	tooltips['menus'].en[4] = "<BR><B>Keypress Events:</B>Define the actions that occur when a user presses the corresponding digit.";
+	

Modified: trunk/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/trunks.html?rev=77&r1=76&r2=77&view=diff
==============================================================================
--- trunk/config/trunks.html (original)
+++ trunk/config/trunks.html Tue Oct 17 14:48:11 2006
@@ -344,8 +344,8 @@
 				<tr><td colspan='2' align='center'><div style="height:15px" id='status'></div></td></tr>
 				<tr><td colspan='2' align='center'><img id='providerlogo' style='visibility:hidden;width:230px;height:72px'></td></tr>
 				<tr><td colspan='2' align='center'><div id='providerdesc' align='left' style='width:230px;height:100px'></div></td></tr>
-				<tr><td>Username:</td><td><input size='20' id='username'></td></tr>
-				<tr><td>Password:</td><td><input size='20' id='secret'></td></tr>
+				<tr onmouseover="show_tooltip('en', 'trunks', 3);"><td>Username:</td><td><input size='20' id='username'></td></tr>
+				<tr onmouseover="show_tooltip('en', 'trunks', 4);"><td>Password:</td><td><input size='20' id='secret'></td></tr>
 				</table>
 				</div>
 				</div>



More information about the asterisk-gui-commits mailing list