pari: trunk r717 - in /trunk/config/setup: 3.html 4.html 5.html 7.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Fri Apr 20 14:33:22 MST 2007


Author: pari
Date: Fri Apr 20 16:33:21 2007
New Revision: 717

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=717
Log:
Use cross browser add_event functions during setup wizard

Modified:
    trunk/config/setup/3.html
    trunk/config/setup/4.html
    trunk/config/setup/5.html
    trunk/config/setup/7.html

Modified: trunk/config/setup/3.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/3.html?view=diff&rev=717&r1=716&r2=717
==============================================================================
--- trunk/config/setup/3.html (original)
+++ trunk/config/setup/3.html Fri Apr 20 16:33:21 2007
@@ -26,7 +26,7 @@
 </HEAD>
 <script src="../scripts/prototype.js"></script>
 <SCRIPT>
-
+add_event = parent.add_event;
 var rawman_url;
 var usercallbacks = new Object;
 var fieldnames = new Array( 'save','userbase','localextenlength','allow_aliasextns');
@@ -62,7 +62,8 @@
 	};
 	rawman_url = parent.rawman_url ;
 	parent.astmanEngine.setURL(rawman_url);
-	_$('localextenlength').addEventListener("change", update_spae, false);
+	//_$('localextenlength').addEventListener("change", update_spae, false);
+	add_event( _$('localextenlength') , "change", update_spae );
 	ping();
 }
 
@@ -113,7 +114,8 @@
 
 
 usercallbacks.loaded = function(){
-	_$('localextenlength').addEventListener("change", store_extlength, false);
+	//_$('localextenlength').addEventListener("change", store_extlength, false);
+	add_event( _$('localextenlength') , "change", store_extlength );
 	parent.astmanEngine.pollEvents();
 	_$('devices').selectitem(0);
 	parent._$('next').disabled = false;	

Modified: trunk/config/setup/4.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/4.html?view=diff&rev=717&r1=716&r2=717
==============================================================================
--- trunk/config/setup/4.html (original)
+++ trunk/config/setup/4.html Fri Apr 20 16:33:21 2007
@@ -184,7 +184,8 @@
 	parent.astmanEngine.pollEvents();
 	_$('devices').contentEditable = 'true';
 	_$('devices').disabled = 0;
-	_$('new').addEventListener("click", showSPdetails, false); 
+	//_$('new').addEventListener("click", showSPdetails, false);
+	add_event( _$('new') , "click", showSPdetails );
 	loadServiceProvidersintotable();
 }
 

Modified: trunk/config/setup/5.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/5.html?view=diff&rev=717&r1=716&r2=717
==============================================================================
--- trunk/config/setup/5.html (original)
+++ trunk/config/setup/5.html Fri Apr 20 16:33:21 2007
@@ -122,7 +122,8 @@
 }
 
 trunkcallbacks.loaded = function(){
-	_$('trunks').addEventListener('click',hackenablesave,false);
+	//_$('trunks').addEventListener('click',hackenablesave,false);
+	add_event( _$('trunks') , "click", hackenablesave );
 	parent.astmanEngine.config2list("extensions.conf", _$('extensions'), new Object(), numplan_callbacks);
 }
 

Modified: trunk/config/setup/7.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/7.html?view=diff&rev=717&r1=716&r2=717
==============================================================================
--- trunk/config/setup/7.html (original)
+++ trunk/config/setup/7.html Fri Apr 20 16:33:21 2007
@@ -72,7 +72,8 @@
 callbacks.loaded = function() {
 	_$('devices').contentEditable = 'true';
 	_$('devices').disabled = 0;
-	_$('new').addEventListener("click", showuserdetails, false); 
+	//_$('new').addEventListener("click", showuserdetails, false);
+	add_event( _$('new') , "click", showuserdetails );
 	parent.astmanEngine.pollEvents();
 	loadusersintotable();
 }



More information about the asterisk-gui-commits mailing list