pari: trunk r641 - /trunk/config/scripts/astman.js

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Mon Apr 9 20:59:20 MST 2007


Author: pari
Date: Mon Apr  9 22:59:20 2007
New Revision: 641

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=641
Log:
missed this one in r626

Modified:
    trunk/config/scripts/astman.js

Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=641&r1=640&r2=641
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Mon Apr  9 22:59:20 2007
@@ -1458,11 +1458,7 @@
 				if (savewidget) {
 					widgets[x].savewidget = savewidget;
 					if ((widgets[x].type == 'checkbox') || (widgets[x].type == 'radio')) {
-						widgets[x].onclick = function() {
-							this.savewidget.activateSave();
-							if (this.altonclick)
-								this.altonclick();
-						}
+						add_event( widgets[x] , 'click', function() { this.savewidget.activateSave(); if (this.altonclick){this.altonclick();} });
 						if (widgets[x].altonclick)
 							widgets[x].altonclick();
 					} else {



More information about the asterisk-gui-commits mailing list