pari: branch aadk r1041 - /branches/aadk/config/networking.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Mon Jun 4 18:18:09 MST 2007


Author: pari
Date: Mon Jun  4 20:18:09 2007
New Revision: 1041

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1041
Log:
updating to new event definitions in networking.html

Modified:
    branches/aadk/config/networking.html

Modified: branches/aadk/config/networking.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/networking.html?view=diff&rev=1041&r1=1040&r2=1041
==============================================================================
--- branches/aadk/config/networking.html (original)
+++ branches/aadk/config/networking.html Mon Jun  4 20:18:09 2007
@@ -41,8 +41,8 @@
 		enabledisable_dhcpwan();
 		enabledisable_dhcplan();
 		show_window(1);
-		add_event( _$('DHCP_WAN'), 'click', enabledisable_dhcpwan);
-		add_event( _$('DHCP_LAN'), 'click', enabledisable_dhcplan);
+		ASTGUI.events.add( _$('DHCP_WAN'), 'click', enabledisable_dhcpwan);
+		ASTGUI.events.add( _$('DHCP_LAN'), 'click', enabledisable_dhcplan);
                parent.loadscreen(this);
 	}
 
@@ -121,14 +121,14 @@
 			widgets[nwfields[x]].disabled = true;
 		}
 
-		add_event( _$('IP_LAN') , 'change', function(){
+		ASTGUI.events.add( _$('IP_LAN') , 'change', function(){
 			var t = Number( _$('IP_LAN').value.substr(0,3) );
  				if ( t >= 128 && t <= 191 ){ _$('SUBNET_LAN').value = "255.255.0.0"; return;}
 				if ( t >= 0 && t <= 127 ){ _$('SUBNET_LAN').value = "255.0.0.0"; return;}
 				if ( t >= 192  ){ _$('SUBNET_LAN').value = "255.255.255.0"; }
 			}
 		);
-		add_event( _$('IP_WAN') , 'change', function(){
+		ASTGUI.events.add( _$('IP_WAN') , 'change', function(){
 			var t = Number( _$('IP_WAN').value.substr(0,3) );
  				if ( t >= 128 && t <= 191 ){ _$('SUBNET_WAN').value = "255.255.0.0"; return;}
 				if ( t >= 0 && t <= 127 ){ _$('SUBNET_WAN').value = "255.0.0.0"; return;}



More information about the asterisk-gui-commits mailing list