pari: trunk r851 - /trunk/config/setup/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed May 2 15:42:48 MST 2007


Author: pari
Date: Wed May  2 17:42:48 2007
New Revision: 851

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=851
Log:
in setup wizard fields: On focus color change -> from JS to CSS 

Modified:
    trunk/config/setup/1.html
    trunk/config/setup/3.html
    trunk/config/setup/6.html
    trunk/config/setup/7.html
    trunk/config/setup/8.html
    trunk/config/setup/setup.css

Modified: trunk/config/setup/1.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/1.html?view=diff&rev=851&r1=850&r2=851
==============================================================================
--- trunk/config/setup/1.html (original)
+++ trunk/config/setup/1.html Wed May  2 17:42:48 2007
@@ -34,12 +34,6 @@
 var cats = new Array();
 
 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';}
-
 	parent.fxoports = [];
 	parent.fxsports = [];
 	parent.$('next').disabled = true;

Modified: trunk/config/setup/3.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/3.html?view=diff&rev=851&r1=850&r2=851
==============================================================================
--- trunk/config/setup/3.html (original)
+++ trunk/config/setup/3.html Wed May  2 17:42:48 2007
@@ -36,12 +36,6 @@
 var prevpage = "1.html";
 
 function localinit(){
-	var focus_fields = [ 'localextenlength','userbase' ];
-	for( var  r =0; r < focus_fields.length ; r++ ){
-		var d = _$(focus_fields[r]);
-		d.onfocus = function(){ this.className = 'input9_hilight'; }
-		d.onblur = function(){ this.className = 'input9'; }
-	}
 	parent._$('next').disabled = true;
 	parent._$('next').onclick = function(){	 
 		if( !_$('save').disabled ){
@@ -62,7 +56,6 @@
 	};
 	rawman_url = parent.rawman_url ;
 	parent.astmanEngine.setURL(rawman_url);
-	//_$('localextenlength').addEventListener("change", update_spae, false);
 	add_event( _$('localextenlength') , "change", update_spae );
 	ping();
 }

Modified: trunk/config/setup/6.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/6.html?view=diff&rev=851&r1=850&r2=851
==============================================================================
--- trunk/config/setup/6.html (original)
+++ trunk/config/setup/6.html Wed May  2 17:42:48 2007
@@ -45,13 +45,6 @@
 }
 
 function localinit(){
-	var focus_fields = [ 'name','maxmsg','maxmessage','maxgreet'];
-	for( var  r =0; r < focus_fields.length ; r++ ){
-		var d = _$(focus_fields[r]);
-		d.onfocus = function(){ this.className = 'input9_hilight'; }
-		d.onblur = function(){ this.className = 'input9'; }
-	}
-
 	//parent.$('next').disabled = true;
 	parent._$('next').onclick = function(){	 
 		if ( _$('name').value.length==0 ){

Modified: trunk/config/setup/7.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/7.html?view=diff&rev=851&r1=850&r2=851
==============================================================================
--- trunk/config/setup/7.html (original)
+++ trunk/config/setup/7.html Wed May  2 17:42:48 2007
@@ -195,12 +195,6 @@
 extencallbacks.eachline = true;
 
 function localinit(){
-	var focus_fields = [ 'name','fullname','secret','email','cid_number','context','zapchan'];
-	for( var  r =0; r < focus_fields.length ; r++ ){
-		var d = _$(focus_fields[r]);
-		d.onfocus = function(){ this.className = 'input9_hilight'; }
-		d.onblur = function(){ this.className = 'input9'; }
-	}
 	//parent.$('next').disabled = true;
 	parent._$('next').onclick = function(){	 window.location.href="8.html"; };
 	parent._$('back').disabled = false;

Modified: trunk/config/setup/8.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/8.html?view=diff&rev=851&r1=850&r2=851
==============================================================================
--- trunk/config/setup/8.html (original)
+++ trunk/config/setup/8.html Wed May  2 17:42:48 2007
@@ -35,7 +35,6 @@
 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 ; 
@@ -468,10 +467,6 @@
 	if ( originalRequest.responseText.match("Pong") ) {
 		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: trunk/config/setup/setup.css
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/setup.css?view=diff&rev=851&r1=850&r2=851
==============================================================================
--- trunk/config/setup/setup.css (original)
+++ trunk/config/setup/setup.css Wed May  2 17:42:48 2007
@@ -123,6 +123,9 @@
 	padding : 0px 0px 0px 3px;
 }
 
+.input9:focus {
+	background-color:#FFC58A;
+}
 
 .splbutton {
 	font-size:12px;



More information about the asterisk-gui-commits mailing list