pari: trunk r317 - in /trunk/config: ./ stylesheets/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu Feb 1 17:18:52 MST 2007


Author: pari
Date: Thu Feb  1 18:18:51 2007
New Revision: 317

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=317
Log:
Tweak: Show the current highlighted field in a different color

Modified:
    trunk/config/incoming.html
    trunk/config/localexts.html
    trunk/config/meetme.html
    trunk/config/numberplan.html
    trunk/config/options.html
    trunk/config/queues.html
    trunk/config/record.html
    trunk/config/stylesheets/schwing.css
    trunk/config/trunks.html
    trunk/config/users.html
    trunk/config/voicemail.html

Modified: trunk/config/incoming.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/incoming.html?view=diff&rev=317&r1=316&r2=317
==============================================================================
--- trunk/config/incoming.html (original)
+++ trunk/config/incoming.html Thu Feb  1 18:18:51 2007
@@ -31,6 +31,7 @@
 var old_incomingrule, old_fromprovider ;
 var  edit_pattern, edit_DIDtrunk, edit_action, edit_priority ;
 var listOfExtensions = [] ;	// to store all the list of extensions to be displayed in the select menu
+var focus_fields = new Array('incomingrule','frompattern','fromprovider','toextension');
 
 user_callbacks.format = function(t, x) {
 	var tmp = asterisk_guiTDPrefix + t.name ; 
@@ -453,6 +454,10 @@
 
 
 function localajaxinit() {
+	for (var x =0; x < focus_fields.length; x++ ) {
+		$(focus_fields[x]).onfocus = function(){this.className = 'input9_hilight';}
+		$(focus_fields[x]).onblur = function(){this.className = 'input9';}
+	}
 	parent.astmanEngine.config2list("users.conf", $('users'), new Array(), user_callbacks);
 }
 </script>
@@ -491,17 +496,17 @@
 			</table>
 			<TABLE align=center cellpadding=2 cellspacing=2 border=0 width="100%">
 			<TR><TD height=10></TD></TR>
-			<TR><TD align=center>	<NOBR>Route <select id="incomingrule"  onclick="checksave(this)">
+			<TR><TD align=center>	<NOBR>Route <select id="incomingrule"  onclick="checksave(this)" class="input9">
 											<option value="allunmatched">All Unmatched incoming calls</option>
 											<option value="frompattern">incoming calls that match </option>
 										</select>
-										<span id="thatmatch">pattern <input type="text" id="frompattern" size=12  onchange="enablesave();"  onkeyup="enablesave();"></span>
+										<span id="thatmatch">pattern <input type="text" id="frompattern" size=12  onchange="enablesave();"  onkeyup="enablesave();"  class="input9"></span>
 										</NOBR>
 					</TD>
 			</TR>
-			<TR><TD align=center>from provider <select id="fromprovider" onclick="checksave(this)"></select></TD></TR>
+			<TR><TD align=center>from provider <select id="fromprovider" onclick="checksave(this)"  class="input9"></select></TD></TR>
 			<TR>
-				<TD align=center>to extension <select id="toextension" onchange="enablesave();"  onkeyup="enablesave();"></select></TD>
+				<TD align=center>to extension <select id="toextension" onchange="enablesave();"  onkeyup="enablesave();"  class="input9"></select></TD>
 			</TR>
 			<TR>
 				<TD align=center height=50 valign=middle>  

Modified: trunk/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/localexts.html?view=diff&rev=317&r1=316&r2=317
==============================================================================
--- trunk/config/localexts.html (original)
+++ trunk/config/localexts.html Thu Feb  1 18:18:51 2007
@@ -28,6 +28,7 @@
 var usercallbacks = new Object;
 var fieldnames = new Array('status', 'save','userbase','localextenlength','allow_aliasextns');
 var widgets = new Array;
+var focus_fields = new Array('localextenlength','userbase');
 
 function tosetup(){
 	parent.window.location.href = "./setup/install.html";
@@ -83,6 +84,10 @@
 				widgets[fieldnames[x]] = $(fieldnames[x]);
 				widgets[fieldnames[x]].disabled = true;
 			}
+			for (var x =0; x < focus_fields.length; x++ ) {
+				widgets[focus_fields[x]].onfocus = function(){this.className = 'input9_hilight';}
+				widgets[focus_fields[x]].onblur = function(){this.className = 'input9';}
+			}
 			$('localextenlength').addEventListener("change", update_spae, false);
 			parent.astmanEngine.config2list("users.conf", $('devices'),widgets, usercallbacks);
 }
@@ -116,8 +121,8 @@
 <table class="mainscreenTable" align="center">
 	<tr>	<td align="center" valign="top">
 					<select id="devices" style="display:none"></select> 
-					<p class="field_text">	Local Extensions are <select id="localextenlength"><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option></select> digits long&nbsp;</p>
-					<p class="field_text">	Starting point of Allocation of extensions : <input type=text id="userbase" size=5>	</p>
+					<p class="field_text">	Local Extensions are <select id="localextenlength" class="input9"><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option></select> digits long&nbsp;</p>
+					<p class="field_text">	Starting point of Allocation of extensions : <input type=text id="userbase" size=5  class="input9">	</p>
 					<p class="field_text"> <input type=checkbox id="allow_aliasextns">Allow analog phones to be assigned to multiple extensions</p>
 					<center>
 							<div style="height:15px" id='status'></div><BR>

Modified: trunk/config/meetme.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/meetme.html?view=diff&rev=317&r1=316&r2=317
==============================================================================
--- trunk/config/meetme.html (original)
+++ trunk/config/meetme.html Thu Feb  1 18:18:51 2007
@@ -40,7 +40,7 @@
 				'music','menu', 'announce',
 				'room','record','waitmarked','setmarked','quiet',
 				'pin', 'pinadmin', 'save', 'cancel');
-
+	var focus_fields = new Array('name','pin','pinadmin','room');
 	function changed_extension() {
 		var app;
 		tmp = $('extensions').value.split(']');
@@ -273,6 +273,10 @@
 		for (var x =0; x < fieldnames.length; x++) {
 			widgets[fieldnames[x]] = $(fieldnames[x]);
 			widgets[fieldnames[x]].disabled = true;
+		}
+		for (var x =0; x < focus_fields.length; x++ ) {
+			widgets[focus_fields[x]].onfocus = function(){this.className = 'input8_hilight';}
+			widgets[focus_fields[x]].onblur = function(){this.className = 'input8';}
 		}
 		parent.astmanEngine.config2list("users.conf", $('hiddenusers'), new Array(), usercallbacks);
 	}

Modified: trunk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/numberplan.html?view=diff&rev=317&r1=316&r2=317
==============================================================================
--- trunk/config/numberplan.html (original)
+++ trunk/config/numberplan.html Thu Feb  1 18:18:51 2007
@@ -37,6 +37,7 @@
 var pattern_beingedited ;
 var pattern_beingedited_priority ;
 var oldselect;
+var focus_fields = new Array('rulename','trunks','beginswith','followedby','strip','pattern');
 
 function addthe_default_callingplan(){
 	t=confirm("A default Dial Plan is not found. \n" + " Do you want to create a default Dial Plan ");
@@ -448,6 +449,10 @@
 }
 
 function localajaxinit(){
+	for (var x =0; x < focus_fields.length; x++ ) {
+		$(focus_fields[x]).onfocus = function(){this.className = 'input9_hilight';}
+		$(focus_fields[x]).onblur = function(){this.className = 'input9';}
+	}
 	$('message_text').innerHTML ="Saving Changes...";
 	parent.astmanEngine.config2list("users.conf", $('trunks'), new Array(), trunkcallbacks);
 }
@@ -515,16 +520,16 @@
 		<TABLE	align=center cellpadding=2 cellspacing=2 border=0 width="480">
 		<TR>
 			<TD align="right" width=175>Rule Name:</TD>
-			<TD><input type="text" id="rulename" size="" onChange="enablesave();" onkeyup="enablesave();"></TD>
+			<TD><input type="text" id="rulename" size="" onChange="enablesave();" onkeyup="enablesave();" class="input9"></TD>
 		</TR>
 		<TR>
 			<TD  align="right" height=40> Place this call through :</TD>
-			<TD><select id="trunks"></select></TD>
+			<TD><select id="trunks"  class="input9"></select></TD>
 		</TR>
 		<TR id="define_usual" height=100>
 			<TD valign="top" align=right>Dialing Rules :</TD>
-			<TD valign="top"> If the number begins with <input id="beginswith" type='text' size=6 onChange="enablesave();" onkeyup="enablesave();"> and 
-					followed by <input id="followedby" type='text' size=1 onChange="enablesave();" onkeyup="enablesave();"> digits <input type="checkbox" id="ormore" onChange="enablesave();"> or more <BR>
+			<TD valign="top"> If the number begins with <input id="beginswith"  class="input9" type='text' size=6 onChange="enablesave();" onkeyup="enablesave();"> and 
+					followed by <input id="followedby" type='text'  class="input9" size=1 onChange="enablesave();" onkeyup="enablesave();"> digits <input type="checkbox" id="ormore" onChange="enablesave();"> or more <BR>
 					<A href="#" onclick="ownpattern();">(define a custom pattern)</A>
 			</TD>
 		</TR>
@@ -534,7 +539,7 @@
 				Custom Pattern:
 			</TD>
 			<TD valign=top>
-					<input type="text" id="pattern" size="" onChange="enablesave();" onkeyup="enablesave();"><BR>
+					<input type="text" id="pattern" size="" onChange="enablesave();" onkeyup="enablesave();"  class="input9"><BR>
 					<table align='left' cellpadding=0 cellspacing=0>
 						<tr><td class="field_text"><b>N&nbsp;&nbsp;</b></td><td class="field_text">Any digit from 2 to 9</td></tr>
 						<tr><td class="field_text"><b>X&nbsp;&nbsp;</b></td><td class="field_text">Any digit from 0 to 9</td></tr>
@@ -544,7 +549,7 @@
 		</TR>
 
 		<TR>
-			<TD colspan=2 align=center>Strip <input type="text" id="strip" size="1"  onChange="enablesave();" onkeyup="enablesave();"> digits from the front before dialing:</TD>
+			<TD colspan=2 align=center>Strip <input type="text" id="strip"  class="input9" size="1"  onChange="enablesave();" onkeyup="enablesave();"> digits from the front before dialing:</TD>
 		</TR>
 		<TR>
 			<TD colspan=2 align=center height=50 valign=middle>  

Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?view=diff&rev=317&r1=316&r2=317
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Thu Feb  1 18:18:51 2007
@@ -33,7 +33,7 @@
 var httpconf_callbacks = new Object;
 var managerconf_callbacks = new Object;
 var default_bindaddress, default_port, default_httptimeout;
-
+var focus_fields = new Array('newpass','newpass_rep','bindaddr','bindport','httptimeout');
 
 function cancel_guisettings(){
 	$('bindaddr').value = default_bindaddress ; $('bindport').value =default_port ; $('httptimeout').value = default_httptimeout ;
@@ -218,7 +218,10 @@
 		widgets[fieldnames[x]] = $(fieldnames[x]);
 		widgets[fieldnames[x]].disabled = true;
 	}
-
+	for (var x =0; x < focus_fields.length; x++ ) {
+		$(focus_fields[x]).onfocus = function(){this.className = 'input9_hilight';}
+		$(focus_fields[x]).onblur = function(){this.className = 'input9';}
+	}
 	// if not appliance - hide the gui_accesssettings DIV
 	if ( !parent.window.location.href.match("cfgappliance.html") ){
 		$('gui_accesssettings').style.display="none";
@@ -246,11 +249,11 @@
 			</td>
 	</tr>
 	<tr>	<td align="center" valign="top">
-					<div id="channellist" class="chanlist_small" style="width: 320px; height:100">
+					<div id="channellist" class="chanlist_small" style="width: 320px; height:110">
 					<table cellpadding=2 cellspacing=2 border=0>
 									<tr>	<td colspan=2 height=5></td></tr>
-									<tr  onmouseover="show_tooltip('en', 'options', 1);"><td class="field_text">Enter New Password:</td><td><input type="password" id="newpass" size=16 onkeyup="compare_passwords()"  class="input8"></td></tr>
-									<tr  onmouseover="show_tooltip('en', 'options', 2);"><td class="field_text">Retype New Password:</td><td><input type="password" id="newpass_rep" size=16 onkeyup="compare_passwords()"  class="input8"></td></tr>
+									<tr  onmouseover="show_tooltip('en', 'options', 1);"><td class="field_text">Enter New Password:</td><td><input type="password" id="newpass" size=16 onkeyup="compare_passwords()"  class="input9"></td></tr>
+									<tr  onmouseover="show_tooltip('en', 'options', 2);"><td class="field_text">Retype New Password:</td><td><input type="password" id="newpass_rep" size=16 onkeyup="compare_passwords()"  class="input9"></td></tr>
 									<tr>	<td colspan=2 align="center" height=20><div id="dopwdsmatch" style="font-size : 10px;"></div></td></tr>
 									<tr>	<td align=center colspan=2><input type="button" id="pwdbutton" value="Update" onclick="changepassword()" class="buttonbold"></td></tr>
 					</table>
@@ -259,15 +262,15 @@
 	</tr>
 	<tr valign="top" height="18">	<td></td></tr>
 	<tr>	<td align="center" valign="top">
-					<div id="gui_accesssettings" class="chanlist_small"  style="width: 320px; height:120">
+					<div id="gui_accesssettings" class="chanlist_small"  style="width: 320px; height:135">
 					<table>	
 					<TR><TD colspan=2 align=center><B>GUI - access settings: </B></TD></TR>
 					<tr>	<td colspan=2 height=5></td></tr>
 									<tr  onmouseover="show_tooltip('en', 'options', 3);">
-											<td class="field_text">Bind Address:</td>		<td><input size=14 id='bindaddr' dfalt="127.0.0.1" onkeydown="$('save').disabled=false; $('cancel').disabled=false;"  class="input8"></td>
+											<td class="field_text">Bind Address:</td>		<td><input size=14 id='bindaddr' dfalt="127.0.0.1" onkeydown="$('save').disabled=false; $('cancel').disabled=false;"  class="input9"></td>
 									</tr>
-									<tr  onmouseover="show_tooltip('en', 'options', 4);"><td class="field_text">Port:</td>						<td><input size=14 id='bindport' dfalt=80  onkeydown="$('save').disabled=false; $('cancel').disabled=false;"  class="input8"></td></tr>
-									<tr  onmouseover="show_tooltip('en', 'options', 5);"><td class="field_text">HTTP Timeout:</td>	<td><input size=14 id='httptimeout'  onkeydown="$('save').disabled=false; $('cancel').disabled=false;"  class="input8"></td></tr>
+									<tr  onmouseover="show_tooltip('en', 'options', 4);"><td class="field_text">Port:</td>						<td><input size=14 id='bindport' dfalt=80  onkeydown="$('save').disabled=false; $('cancel').disabled=false;"  class="input9"></td></tr>
+									<tr  onmouseover="show_tooltip('en', 'options', 5);"><td class="field_text">HTTP Timeout:</td>	<td><input size=14 id='httptimeout'  onkeydown="$('save').disabled=false; $('cancel').disabled=false;"  class="input9"></td></tr>
 									<tr><td colspan=2 height=6> </td></tr>
 									<tr><td colspan=2 align=center><input type=button id=save value="Save"  onclick="update_guisettings_manager()" class="buttonbold">&nbsp;<input type=button id=cancel value="Cancel" onclick="cancel_guisettings()" class="buttonbold"></td></tr>
 					</table>

Modified: trunk/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/queues.html?view=diff&rev=317&r1=316&r2=317
==============================================================================
--- trunk/config/queues.html (original)
+++ trunk/config/queues.html Thu Feb  1 18:18:51 2007
@@ -36,6 +36,8 @@
 var queueagents = new  Array;
 var queuenames = new Array;
 var fieldnames = new Array( 'name', 'delete','save', 'status', 'new', 'cancel','fullname', 'strategy', 'timeout', 'wrapuptime','autofill','autopause','maxlen', 'joinempty',  'leavewhenempty', 'reportholdtime','agents');
+var focus_fields = new Array('name','fullname','strategy','timeout','wrapuptime','maxlen');
+
 var k =0;
 var j = -1; 
 var extensions_conf_qs = new Array;
@@ -428,6 +430,10 @@
 	for (var x=0; x < fieldnames.length ; x++) {
 		widgets[fieldnames[x]] = $(fieldnames[x]);
 		widgets[fieldnames[x]].disabled = true;
+	}
+	for (var x =0; x < focus_fields.length; x++ ) {
+		widgets[focus_fields[x]].onfocus = function(){this.className = 'input8_hilight';}
+		widgets[focus_fields[x]].onblur = function(){this.className = 'input8';}
 	}
 	adstatus = "hidden";
 	parent.astmanEngine.config2list("extensions.conf", $('extensions'), new Array(), extencallbacks);

Modified: trunk/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/record.html?view=diff&rev=317&r1=316&r2=317
==============================================================================
--- trunk/config/record.html (original)
+++ trunk/config/record.html Thu Feb  1 18:18:51 2007
@@ -29,6 +29,7 @@
 var callbacks = new Object;
 var rfilescallbacks = new Object;
 var custom_voicemenusfile = "gui_custommenus.conf";
+var focus_fields = new Array('newvmenu_name','newvmenu_ext');
 
 function play_existing(filename){
 	var extension = prompt("Please enter an Extension on which you want to listen to the file",""); 
@@ -245,6 +246,10 @@
 }
 
 function localajaxinit() {
+	for (var x =0; x < focus_fields.length; x++ ) {
+		$(focus_fields[x]).onfocus = function(){this.className = 'input8_hilight';}
+		$(focus_fields[x]).onblur = function(){this.className = 'input8';}
+	}
 	parent.astmanEngine.config2list(custom_voicemenusfile, $('recorded_files'), new Array, rfilescallbacks);
 	parent.astmanEngine.config2list("users.conf", $('newvmenu_ext'), new Array, callbacks);
 	$('message_text').innerHTML = "Please wait while the system <BR> Calls the specified Extension ... ";
@@ -300,7 +305,7 @@
 			<table cellpadding=2 cellspacing=2 border=0>
 				<tr>	<td colspan=2 height=15 valign=middle align=center class="field_text"></td></tr>
 				<tr><td class="field_text">File Name:</td>
-						<td><input id='newvmenu_name' size=24 class="input8">
+						<td><input id='newvmenu_name' size=24 class="input9">
 								<input type="hidden" id="format" value="gsm">
 						</td>
 				</tr>
@@ -319,7 +324,7 @@
 						</td>
 				</tr> -->
 				<tr>	<td class="field_text">Extension used for recording:</td>
-						<td><select id='newvmenu_ext' class="input8"></select></td>
+						<td><select id='newvmenu_ext' class="input9"></select></td>
 				</tr>
 				<tr>	<td colspan=2 align=center height=10></td></tr>
 				<tr>	<td colspan=2 align=center>

Modified: trunk/config/stylesheets/schwing.css
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/stylesheets/schwing.css?view=diff&rev=317&r1=316&r2=317
==============================================================================
--- trunk/config/stylesheets/schwing.css (original)
+++ trunk/config/stylesheets/schwing.css Thu Feb  1 18:18:51 2007
@@ -76,6 +76,13 @@
 	padding : 0px 0px 0px 3px;
 }
 
+.input8_hilight {
+	background-color:#FFC58A;
+	font-size: 8pt;
+	border:1px solid; 
+	padding : 0px 0px 0px 3px;
+}
+
 .input9 {
 	font-size: 9pt;
 	border:1px solid; 
@@ -86,6 +93,13 @@
 	border-right-color:#666;
 	border-bottom-color:#666;
 	*/
+}
+
+.input9_hilight {
+	background-color:#FFC58A;
+	font-size: 9pt;
+	border:1px solid; 
+	padding : 0px 0px 0px 3px;
 }
 
 .input9_disabled {

Modified: trunk/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/trunks.html?view=diff&rev=317&r1=316&r2=317
==============================================================================
--- trunk/config/trunks.html (original)
+++ trunk/config/trunks.html Thu Feb  1 18:18:51 2007
@@ -39,8 +39,10 @@
 				'trunkstyleanalog','trunkstylevoip','trunkstylecustomvoip', 'name', 'username', 'trunkname', 'callerid',
 				'hasexten', 'hassip', 'hasiax','registeriax','registersip','host','dialformat','context','group',
 				'insecure', 'host', 'fromuser', 'fromdomain');
-				
 	var provfieldnames = new Array('providerdesc', 'providerlogo');
+	var focus_fields = new Array('provider','username','secret','customvoip_name','customvoip_protocol',
+	'customvoip_host','customvoip_username','customvoip_secret');
+
 	var isnewtrunk;
 	var dids_array = [];
 	var old_trunkname;
@@ -512,6 +514,11 @@
 			provwidgets[provfieldnames[x]] = $(provfieldnames[x]);
 			provwidgets[provfieldnames[x]].disabled = true;
 		}
+		for (var x =0; x < focus_fields.length; x++ ) {
+			console.log(focus_fields[x]);
+			$(focus_fields[x]).onfocus = function(){this.className = 'input8_hilight';}
+			$(focus_fields[x]).onblur = function(){this.className = 'input8';}
+		}
 		parent.astmanEngine.config2list("zapscan.conf", $('zapchan'), new Array(), phonecallbacks);
 	}
 
@@ -697,10 +704,12 @@
 <td onmouseover="show_tooltip('en', 'trunks', 0);"  class="field_text" width=130 valign="top" align="left">
 <!-- Provider type -->
 				<div id='cabinet' style='width:0;overflow:hidden'><select id='hiddenglobals'></select></div>
-				<B>Provider Type:</B><BR>
+	<fieldset>
+		<legend><B>&nbsp;Provider Type:&nbsp;</B></legend>
 				<LABEL FOR="trunkstyleanalog"><input name='trunkstyle' type='radio' id='trunkstyleanalog' onclick='activateanalogvoip()' value='analog'>Analog</LABEL><BR>
 				<LABEL FOR="trunkstylevoip"><input name='trunkstyle' type='radio' id='trunkstylevoip' onclick='activateanalogvoip()' value='voip'>VoIP</LABEL><BR>
 				<LABEL FOR="trunkstylecustomvoip"><input name='trunkstyle' type='radio' id='trunkstylecustomvoip' onclick='activateanalogvoip()' value='customvoip'>Custom VoIP</LABEL>
+	</fieldset>
 				<div id="div_providername" style="display:none">
 				<BR><BR>
 				<B>Provider Name:</B><BR>

Modified: trunk/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/users.html?view=diff&rev=317&r1=316&r2=317
==============================================================================
--- trunk/config/users.html (original)
+++ trunk/config/users.html Thu Feb  1 18:18:51 2007
@@ -34,6 +34,7 @@
 	var extencallbacks = new Object;
 	var numcallbacks = new Object;
 	var fieldnames = new Array( 'delete', 'status', 'new', 'save', 'cancel','name','fullname','secret','email','cid_number','zapchan','context', 'hasvoicemail','hasdirectory','hassip','hasiax','hasmanager','callwaiting','threewaycalling','mailbox','hasagent','group','host');
+	var focus_fields = new Array( 'name','fullname','secret','email','cid_number','zapchan','context');
 	var localextenlength;
 	var allow_aliasextns;
 
@@ -286,9 +287,13 @@
 		$('features').style.width = 302;
 		adstatus = "hidden";
 		$('devices').contentEditable = 'false';
-		for (var x in fieldnames) {
+		for (var x =0; x < fieldnames.length; x++ ) {
 			widgets[fieldnames[x]] = $(fieldnames[x]);
 			widgets[fieldnames[x]].disabled = true;
+		}
+		for (var x =0; x < focus_fields.length; x++ ) {
+			widgets[focus_fields[x]].onfocus = function(){this.className = 'input8_hilight';}
+			widgets[focus_fields[x]].onblur = function(){this.className = 'input8';}
 		}
 		parent.astmanEngine.config2list("zapscan.conf", $('zapchan'), new Array(), phonecallbacks);
 	}

Modified: trunk/config/voicemail.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/voicemail.html?view=diff&rev=317&r1=316&r2=317
==============================================================================
--- trunk/config/voicemail.html (original)
+++ trunk/config/voicemail.html Thu Feb  1 18:18:51 2007
@@ -38,7 +38,7 @@
 	var voicemailcallbacks = new Object;
 	var localextenlength;
 	var vmfields = new Array('status', 'save', 'cancel','attach','maxmsg','minmessage','maxmessage','saycid','sayduration', 'emailonly','review','attachfmt','maxgreet','operator','envelope');
-
+	var focus_fields = new Array('name','maxmsg','maxmessage','minmessage','attachfmt','maxgreet');
 
 	var fields = new Array('name');
 	
@@ -272,6 +272,10 @@
 		for (var x =0; x < fields.length; x++) {
 			widgets[fields[x]] = $(fields[x]);
 			widgets[fields[x]].disabled = true;
+		}
+		for (var x =0; x < focus_fields.length; x++ ) {
+			$(focus_fields[x]).onfocus = function(){this.className = 'input8_hilight';}
+			$(focus_fields[x]).onblur = function(){this.className = 'input8';}
 		}
 		parent.astmanEngine.config2list("voicemail.conf", $('hiddenvoicemail'), vmwidgets, voicemailcallbacks);
 	}



More information about the asterisk-gui-commits mailing list