pari: branch asterisknow r638 - in /branches: aadk/ aadk/config/ aadk/config/...

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Mon Apr 9 16:29:13 MST 2007


Author: pari
Date: Mon Apr  9 18:29:12 2007
New Revision: 638

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=638
Log:
merging 636 , 637

Added:
    branches/aadk/config/graphs/graph_cpu.svgz
      - copied unchanged from r637, trunk/config/graphs/graph_cpu.svgz
Removed:
    branches/aadk/config/graphs/graph_cpu.svg
Modified:
    branches/aadk/   (props changed)
    branches/aadk/config/backup.html
    branches/aadk/config/feditor.html
    branches/aadk/config/graphs.html
    branches/aadk/config/home.html
    branches/aadk/config/incoming.html
    branches/aadk/config/localexts.html
    branches/aadk/config/meetme.html
    branches/aadk/config/numberplan.html
    branches/aadk/config/queues.html
    branches/aadk/config/record.html
    branches/aadk/config/stylesheets/schwing.css
    branches/aadk/config/trunks.html
    branches/aadk/config/users.html
    branches/aadk/config/voicemail.html
    branches/asterisknow/   (props changed)
    branches/asterisknow/config/backup.html
    branches/asterisknow/config/feditor.html
    branches/asterisknow/config/home.html
    branches/asterisknow/config/incoming.html
    branches/asterisknow/config/localexts.html
    branches/asterisknow/config/meetme.html
    branches/asterisknow/config/numberplan.html
    branches/asterisknow/config/options.html
    branches/asterisknow/config/queues.html
    branches/asterisknow/config/record.html
    branches/asterisknow/config/stylesheets/schwing.css
    branches/asterisknow/config/trunks.html
    branches/asterisknow/config/users.html
    branches/asterisknow/config/voicemail.html

Propchange: branches/aadk/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Apr  9 18:29:12 2007
@@ -1,1 +1,1 @@
-/trunk:1-430,433-449,489-501,505-506,508-510,512-540,542-557,559,561-577,580-586,588-616,618-631
+/trunk:1-430,433-449,489-501,505-506,508-510,512-540,542-557,559,561-577,580-586,588-616,618-637

Modified: branches/aadk/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/backup.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/backup.html (original)
+++ branches/aadk/config/backup.html Mon Apr  9 18:29:12 2007
@@ -29,9 +29,6 @@
 function localajaxinit() {
 	setWindowTitle("Backup");
 	showdiv_statusmessage();
-	var _nn = _$('newbkp_name') ; 
-	_nn.onfocus = function(){this.className = 'input9_hilight';}
-	_nn.onblur = function(){this.className = 'input9';}
 
 	parent.astmanEngine.run_tool(asterisk_guiSysInfo, callback = function() { 
 		var opt = { method: 'get', asynchronous: true,

Modified: branches/aadk/config/feditor.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/feditor.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/feditor.html (original)
+++ branches/aadk/config/feditor.html Mon Apr  9 18:29:12 2007
@@ -1,11 +1,10 @@
 <!--
  * Asterisk-GUI	-	an Asterisk configuration interface
  *
- * "Backup / Restore" management
+ * File Editor - Edit asterisk config files from the GUI
  *
  * Copyright (C) 2006-2007, Digium, Inc.
  *
- * Mark Spencer <markster at digium.com>
  * Pari Nannapaneni <pari at digium.com>
  *
  * See http://www.asterisk.org for more information about

Modified: branches/aadk/config/graphs.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/graphs.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/graphs.html (original)
+++ branches/aadk/config/graphs.html Mon Apr  9 18:29:12 2007
@@ -147,7 +147,7 @@
 						<BR>
 						<div id="cpu_div" style="display:none">
 								<div id="cpu" style="font-family:courier; font-size:10pt;"></div><BR>
-								<embed id="cpu_embed" type="image/svg+xml" src="graphs/graph_cpu.svg?graphs/data_wan.html"
+								<embed id="cpu_embed" type="image/svg+xml" src="graphs/graph_cpu.svgz"
 									width="500" height="250" /> 
 						</div>
 				</div>

Modified: branches/aadk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/home.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/home.html (original)
+++ branches/aadk/config/home.html Mon Apr  9 18:29:12 2007
@@ -148,11 +148,6 @@
 }
 
 function localinit() {
-	var un = _$('username') ; var pwd = _$('secret') ; 
-	un.onfocus = function(){this.className = 'input9_hilight';}
-	un.onblur = function(){this.className = 'input9';}
-	pwd.onfocus = function(){this.className = 'input9_hilight';}
-	pwd.onblur = function(){this.className = 'input9';}
 	top.document.title = "Asterisk GUI (Beta) -- Home";
 	localajaminit();
 }

Modified: branches/aadk/config/incoming.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/incoming.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/incoming.html (original)
+++ branches/aadk/config/incoming.html Mon Apr  9 18:29:12 2007
@@ -32,7 +32,7 @@
 var old_incomingrule, old_fromprovider ;
 var editstatus , 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 ; 
@@ -450,10 +450,7 @@
 function localajaxinit() {
 	showdiv_statusmessage();
 	setWindowTitle("Incoming Calls");
-	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);
 }
 

Modified: branches/aadk/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/localexts.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/localexts.html (original)
+++ branches/aadk/config/localexts.html Mon Apr  9 18:29:12 2007
@@ -29,7 +29,7 @@
 var usercallbacks = new Object;
 var fieldnames = ['allow_aliasextns', 'allow_an_extns', 'callwaiting', 'cancel', 'hasagent', 'hasdirectory', 'hasiax', 'hasmanager', 'hassip', 'hasvoicemail', 'localextenlength', 'save', 'threewaycalling', 'userbase', 'vmsecret'];
 var widgets = {};
-var focus_fields = new Array('localextenlength','userbase','vmsecret');
+
 
 function tosetup(){
 	parent.window.location.href = "./setup/install.html";
@@ -82,10 +82,6 @@
 	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 = 'input9_hilight';}
-		widgets[focus_fields[x]].onblur = function(){this.className = 'input9';}
 	}
 
 	add_event( _$('localextenlength') , 'change' , update_spae ) ;

Modified: branches/aadk/config/meetme.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/meetme.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/meetme.html (original)
+++ branches/aadk/config/meetme.html Mon Apr  9 18:29:12 2007
@@ -33,7 +33,7 @@
 var usercallbacks = new Object;
 var meetmecallbacks = { };
 var fieldnames = ['announce', 'cancel', 'delete', 'menu', 'music', 'name', 'newitem', 'quiet', 'record', 'room', 'save', 'setmarked', 'waitmarked'];
-var focus_fields = new Array('name','room', 'pin','pinadmin');
+
 
 function changed_extension() {
 	var app;
@@ -372,10 +372,7 @@
 		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 = 'input8_hilight';}
-		_$( focus_fields[x] ).onblur = function(){this.className = 'input8';}
-	}
+
 	enable_disable_fields(0);
 
 	add_event( _$('pin') , 'keyup', enable_save_cancel );

Modified: branches/aadk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/numberplan.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/numberplan.html (original)
+++ branches/aadk/config/numberplan.html Mon Apr  9 18:29:12 2007
@@ -32,7 +32,7 @@
 var numplan_callbacks = { };
 var numberplansdata = { };
 var fieldnames = ['cancel', 'delete', 'include', 'name', 'new', 'plancomment', 'save'];
-var focus_fields = ['beginswith', 'followedby', 'pattern', 'plancomment', 'prepend', 'rulename', 'strip', 'trunks'];
+
 //var default_numberplan = 0;
 var isnewrule ;
 var iscustom ;
@@ -540,10 +540,7 @@
 		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';}
-	}
+
 	_$('message_text').innerHTML ="Saving Changes...";
 
 	config2json('users.conf', 1, trunks_loaded ) ;

Modified: branches/aadk/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/queues.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/queues.html (original)
+++ branches/aadk/config/queues.html Mon Apr  9 18:29:12 2007
@@ -37,7 +37,7 @@
 var queueagents = new  Array;
 var queuenames = new Array;
 var fieldnames = ['agents', 'autofill', 'autopause', 'cancel', 'delete', 'fullname', 'joinempty', 'leavewhenempty', 'maxlen', 'musicclass', 'name', 'new', 'reportholdtime', 'save', 'strategy', 'timeout', 'wrapuptime'];
-var focus_fields = ['fullname', 'maxlen', 'musicclass', 'name', 'strategy', 'timeout', 'wrapuptime'];
+
 var k =0;
 var j = -1; 
 var extensions_conf_qs = new Array;
@@ -438,10 +438,7 @@
 		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("musiconhold.conf", $('musicclass'), new Array(), mohcallbacks);
 	$('save_q').disabled = true;

Modified: branches/aadk/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/record.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/record.html (original)
+++ branches/aadk/config/record.html Mon Apr  9 18:29:12 2007
@@ -26,16 +26,12 @@
 <link href="stylesheets/rico.css" media="all" rel="Stylesheet" type="text/css" />
 <link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
 <script>
-var focus_fields = new Array('newvmenu_name','newvmenu_ext');
+
 var callbacks = {};
 
 function localajaxinit(){
 	showdiv_statusmessage();
 	setWindowTitle("Record a Menu");
-	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';}
-	}
 	_$('message_text').innerHTML = "Please wait while the system <BR> Calls the specified Extension ... ";
 	parent.astmanEngine.config2list("users.conf", _$('newvmenu_ext'), new Array, callbacks);
 }

Modified: branches/aadk/config/stylesheets/schwing.css
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/stylesheets/schwing.css?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/stylesheets/schwing.css (original)
+++ branches/aadk/config/stylesheets/schwing.css Mon Apr  9 18:29:12 2007
@@ -76,6 +76,10 @@
 	padding : 0px 0px 0px 3px;
 }
 
+.input8:focus {
+	background-color:#FFC58A;
+}
+
 .input8_hilight {
 	background-color:#FFC58A;
 	font-size: 8pt;
@@ -93,6 +97,10 @@
 	border-right-color:#666;
 	border-bottom-color:#666;
 	*/
+}
+
+.input9:focus {
+	background-color:#FFC58A;
 }
 
 .input9_hilight {

Modified: branches/aadk/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/trunks.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/trunks.html (original)
+++ branches/aadk/config/trunks.html Mon Apr  9 18:29:12 2007
@@ -37,8 +37,6 @@
 		'name','new','port','provider','registeriax','registersip','save','secret','trunkname','trunkstyleanalog','trunkstylecustomvoip',
 		'trunkstylevoip','username','zapchan'];
 var provfieldnames = ['providerdesc', 'providerlogo'];
-var focus_fields = ['callerid','contact','custom_trunkname','customvoip_host','customvoip_name','customvoip_protocol','customvoip_secret','customvoip_username',
-		'fromdomain','fromuser','insecure','port','provider','secret','username'] ;
 var isnewtrunk;
 var dids_array = [];
 var old_trunkname;
@@ -491,10 +489,7 @@
 		provwidgets[provfieldnames[x]] = _$(provfieldnames[x]);
 		provwidgets[provfieldnames[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("zapscan.conf", _$('zapchan'), new Array(), phonecallbacks);
 }
 

Modified: branches/aadk/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/users.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/users.html (original)
+++ branches/aadk/config/users.html Mon Apr  9 18:29:12 2007
@@ -32,7 +32,7 @@
 var callbacks = new Object;
 var extencallbacks = new Object;
 var fieldnames = ['callwaiting' ,'cancel' ,'cid_number' ,'context' ,'delete' ,'email' ,'fullname' ,'group' ,'hasagent' ,'hasdirectory' ,'hasiax' ,'hasmanager' ,'hassip' ,'hasvoicemail' ,'host' ,'mailbox' ,'name' ,'new' ,'save' ,'secret' ,'threewaycalling' ,'vmsecret' ,'zapchan', 'registeriax', 'registersip'];
-var focus_fields = ['cid_number' ,'context' ,'email' ,'fullname' ,'name' ,'secret' ,'vmsecret' ,'zapchan'] ;
+
 var localextenlength = 4;
 var allow_aliasextns = "no";
 var allow_an_extns = "no" ;
@@ -302,10 +302,7 @@
 		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';}
-	}
+
 	config2json('zapscan.conf', 1, analoglines_loaded ) ;
 	//parent.astmanEngine.config2list("zapscan.conf", _$('zapchan'), new Array(), phonecallbacks);
 }

Modified: branches/aadk/config/voicemail.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/voicemail.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/aadk/config/voicemail.html (original)
+++ branches/aadk/config/voicemail.html Mon Apr  9 18:29:12 2007
@@ -37,7 +37,6 @@
 var voicemailcallbacks = new Object;
 var localextenlength;
 var vmfields = ['attach' ,'attachfmt' ,'cancel' ,'emailonly' ,'envelope' ,'maxgreet' ,'maxmessage' ,'maxmsg' ,'minmessage' ,'operator' ,'review' ,'save' ,'saycid' ,'sayduration'];
-var focus_fields = ['attachfmt', 'maxgreet', 'maxmessage', 'maxmsg', 'minmessage', 'name'];
 
 var fields = new Array('name');
 
@@ -286,10 +285,7 @@
 		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);
 }
 

Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Apr  9 18:29:12 2007
@@ -1,1 +1,1 @@
-/trunk:1-449,489-540,542-557,559,561-577,580-586,588-632
+/trunk:1-449,489-540,542-557,559,561-577,580-586,588-637

Modified: branches/asterisknow/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/backup.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/backup.html (original)
+++ branches/asterisknow/config/backup.html Mon Apr  9 18:29:12 2007
@@ -29,9 +29,6 @@
 function localajaxinit() {
 	setWindowTitle("Backup");
 	showdiv_statusmessage();
-	var _nn = _$('newbkp_name') ; 
-	_nn.onfocus = function(){this.className = 'input9_hilight';}
-	_nn.onblur = function(){this.className = 'input9';}
 
 	parent.astmanEngine.run_tool(asterisk_guiSysInfo, callback = function() { 
 		var opt = { method: 'get', asynchronous: true,

Modified: branches/asterisknow/config/feditor.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/feditor.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/feditor.html (original)
+++ branches/asterisknow/config/feditor.html Mon Apr  9 18:29:12 2007
@@ -1,11 +1,10 @@
 <!--
  * Asterisk-GUI	-	an Asterisk configuration interface
  *
- * "Backup / Restore" management
+ * File Editor - Edit asterisk config files from the GUI
  *
  * Copyright (C) 2006-2007, Digium, Inc.
  *
- * Mark Spencer <markster at digium.com>
  * Pari Nannapaneni <pari at digium.com>
  *
  * See http://www.asterisk.org for more information about

Modified: branches/asterisknow/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/home.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/home.html (original)
+++ branches/asterisknow/config/home.html Mon Apr  9 18:29:12 2007
@@ -145,11 +145,6 @@
 }
 
 function localinit() {
-	var un = _$('username') ; var pwd = _$('secret') ; 
-	un.onfocus = function(){this.className = 'input9_hilight';}
-	un.onblur = function(){this.className = 'input9';}
-	pwd.onfocus = function(){this.className = 'input9_hilight';}
-	pwd.onblur = function(){this.className = 'input9';}
 	top.document.title = "Asterisk GUI (Beta) -- Home";
 	localajaminit();
 }

Modified: branches/asterisknow/config/incoming.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/incoming.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/incoming.html (original)
+++ branches/asterisknow/config/incoming.html Mon Apr  9 18:29:12 2007
@@ -32,7 +32,7 @@
 var old_incomingrule, old_fromprovider ;
 var editstatus , 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 ; 
@@ -450,10 +450,7 @@
 function localajaxinit() {
 	showdiv_statusmessage();
 	setWindowTitle("Incoming Calls");
-	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);
 }
 

Modified: branches/asterisknow/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/localexts.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/localexts.html (original)
+++ branches/asterisknow/config/localexts.html Mon Apr  9 18:29:12 2007
@@ -29,7 +29,7 @@
 var usercallbacks = new Object;
 var fieldnames = ['allow_aliasextns', 'allow_an_extns', 'callwaiting', 'cancel', 'hasagent', 'hasdirectory', 'hasiax', 'hasmanager', 'hassip', 'hasvoicemail', 'localextenlength', 'save', 'threewaycalling', 'userbase', 'vmsecret'];
 var widgets = {};
-var focus_fields = new Array('localextenlength','userbase','vmsecret');
+
 
 function tosetup(){
 	parent.window.location.href = "./setup/install.html";
@@ -82,10 +82,6 @@
 	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 = 'input9_hilight';}
-		widgets[focus_fields[x]].onblur = function(){this.className = 'input9';}
 	}
 
 	add_event( _$('localextenlength') , 'change' , update_spae ) ;

Modified: branches/asterisknow/config/meetme.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/meetme.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/meetme.html (original)
+++ branches/asterisknow/config/meetme.html Mon Apr  9 18:29:12 2007
@@ -33,7 +33,7 @@
 var usercallbacks = new Object;
 var meetmecallbacks = { };
 var fieldnames = ['announce', 'cancel', 'delete', 'menu', 'music', 'name', 'newitem', 'quiet', 'record', 'room', 'save', 'setmarked', 'waitmarked'];
-var focus_fields = new Array('name','room', 'pin','pinadmin');
+
 
 function changed_extension() {
 	var app;
@@ -372,10 +372,7 @@
 		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 = 'input8_hilight';}
-		_$( focus_fields[x] ).onblur = function(){this.className = 'input8';}
-	}
+
 	enable_disable_fields(0);
 
 	add_event( _$('pin') , 'keyup', enable_save_cancel );

Modified: branches/asterisknow/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/numberplan.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/numberplan.html (original)
+++ branches/asterisknow/config/numberplan.html Mon Apr  9 18:29:12 2007
@@ -32,7 +32,7 @@
 var numplan_callbacks = { };
 var numberplansdata = { };
 var fieldnames = ['cancel', 'delete', 'include', 'name', 'new', 'plancomment', 'save'];
-var focus_fields = ['beginswith', 'followedby', 'pattern', 'plancomment', 'prepend', 'rulename', 'strip', 'trunks'];
+
 //var default_numberplan = 0;
 var isnewrule ;
 var iscustom ;
@@ -540,10 +540,7 @@
 		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';}
-	}
+
 	_$('message_text').innerHTML ="Saving Changes...";
 
 	config2json('users.conf', 1, trunks_loaded ) ;

Modified: branches/asterisknow/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/options.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/options.html (original)
+++ branches/asterisknow/config/options.html Mon Apr  9 18:29:12 2007
@@ -27,7 +27,6 @@
 <link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
 <script>
 var current_username = parent.document.getElementById('login_name').value;
-var focus_fields = new Array('newpass','newpass_rep');
 
 function askforRelogin(originalRequest){
 	if ( originalRequest.responseText.match("Success") ) {
@@ -88,10 +87,6 @@
 	showdiv_statusmessage();
 	setWindowTitle("Options");
 
-	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.loadscreen(this);
 	_$('newpass').focus();
 }

Modified: branches/asterisknow/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/queues.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/queues.html (original)
+++ branches/asterisknow/config/queues.html Mon Apr  9 18:29:12 2007
@@ -37,7 +37,7 @@
 var queueagents = new  Array;
 var queuenames = new Array;
 var fieldnames = ['agents', 'autofill', 'autopause', 'cancel', 'delete', 'fullname', 'joinempty', 'leavewhenempty', 'maxlen', 'musicclass', 'name', 'new', 'reportholdtime', 'save', 'strategy', 'timeout', 'wrapuptime'];
-var focus_fields = ['fullname', 'maxlen', 'musicclass', 'name', 'strategy', 'timeout', 'wrapuptime'];
+
 var k =0;
 var j = -1; 
 var extensions_conf_qs = new Array;
@@ -438,10 +438,7 @@
 		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("musiconhold.conf", $('musicclass'), new Array(), mohcallbacks);
 	$('save_q').disabled = true;

Modified: branches/asterisknow/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/record.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/record.html (original)
+++ branches/asterisknow/config/record.html Mon Apr  9 18:29:12 2007
@@ -26,16 +26,12 @@
 <link href="stylesheets/rico.css" media="all" rel="Stylesheet" type="text/css" />
 <link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
 <script>
-var focus_fields = new Array('newvmenu_name','newvmenu_ext');
+
 var callbacks = {};
 
 function localajaxinit(){
 	showdiv_statusmessage();
 	setWindowTitle("Record a Menu");
-	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';}
-	}
 	_$('message_text').innerHTML = "Please wait while the system <BR> Calls the specified Extension ... ";
 	parent.astmanEngine.config2list("users.conf", _$('newvmenu_ext'), new Array, callbacks);
 }

Modified: branches/asterisknow/config/stylesheets/schwing.css
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/stylesheets/schwing.css?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/stylesheets/schwing.css (original)
+++ branches/asterisknow/config/stylesheets/schwing.css Mon Apr  9 18:29:12 2007
@@ -76,6 +76,10 @@
 	padding : 0px 0px 0px 3px;
 }
 
+.input8:focus {
+	background-color:#FFC58A;
+}
+
 .input8_hilight {
 	background-color:#FFC58A;
 	font-size: 8pt;
@@ -93,6 +97,10 @@
 	border-right-color:#666;
 	border-bottom-color:#666;
 	*/
+}
+
+.input9:focus {
+	background-color:#FFC58A;
 }
 
 .input9_hilight {

Modified: branches/asterisknow/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/trunks.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/trunks.html (original)
+++ branches/asterisknow/config/trunks.html Mon Apr  9 18:29:12 2007
@@ -37,8 +37,6 @@
 		'name','new','port','provider','registeriax','registersip','save','secret','trunkname','trunkstyleanalog','trunkstylecustomvoip',
 		'trunkstylevoip','username','zapchan'];
 var provfieldnames = ['providerdesc', 'providerlogo'];
-var focus_fields = ['callerid','contact','custom_trunkname','customvoip_host','customvoip_name','customvoip_protocol','customvoip_secret','customvoip_username',
-		'fromdomain','fromuser','insecure','port','provider','secret','username'] ;
 var isnewtrunk;
 var dids_array = [];
 var old_trunkname;
@@ -491,10 +489,7 @@
 		provwidgets[provfieldnames[x]] = _$(provfieldnames[x]);
 		provwidgets[provfieldnames[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("zapscan.conf", _$('zapchan'), new Array(), phonecallbacks);
 }
 

Modified: branches/asterisknow/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/users.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/users.html (original)
+++ branches/asterisknow/config/users.html Mon Apr  9 18:29:12 2007
@@ -32,7 +32,7 @@
 var callbacks = new Object;
 var extencallbacks = new Object;
 var fieldnames = ['callwaiting' ,'cancel' ,'cid_number' ,'context' ,'delete' ,'email' ,'fullname' ,'group' ,'hasagent' ,'hasdirectory' ,'hasiax' ,'hasmanager' ,'hassip' ,'hasvoicemail' ,'host' ,'mailbox' ,'name' ,'new' ,'save' ,'secret' ,'threewaycalling' ,'vmsecret' ,'zapchan', 'registeriax', 'registersip'];
-var focus_fields = ['cid_number' ,'context' ,'email' ,'fullname' ,'name' ,'secret' ,'vmsecret' ,'zapchan'] ;
+
 var localextenlength = 4;
 var allow_aliasextns = "no";
 var allow_an_extns = "no" ;
@@ -332,10 +332,7 @@
 		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';}
-	}
+
 	config2json('zapscan.conf', 1, analoglines_loaded ) ;
 	//parent.astmanEngine.config2list("zapscan.conf", _$('zapchan'), new Array(), phonecallbacks);
 }

Modified: branches/asterisknow/config/voicemail.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/voicemail.html?view=diff&rev=638&r1=637&r2=638
==============================================================================
--- branches/asterisknow/config/voicemail.html (original)
+++ branches/asterisknow/config/voicemail.html Mon Apr  9 18:29:12 2007
@@ -37,7 +37,6 @@
 var voicemailcallbacks = new Object;
 var localextenlength;
 var vmfields = ['attach' ,'attachfmt' ,'cancel' ,'emailonly' ,'envelope' ,'maxgreet' ,'maxmessage' ,'maxmsg' ,'minmessage' ,'operator' ,'review' ,'save' ,'saycid' ,'sayduration'];
-var focus_fields = ['attachfmt', 'maxgreet', 'maxmessage', 'maxmsg', 'minmessage', 'name'];
 
 var fields = new Array('name');
 
@@ -286,10 +285,7 @@
 		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