pari: trunk r380 - /trunk/config/numberplan.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Mon Feb 26 15:28:42 MST 2007
Author: pari
Date: Mon Feb 26 16:28:41 2007
New Revision: 380
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=380
Log:
defining the right event
Modified:
trunk/config/numberplan.html
Modified: trunk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/numberplan.html?view=diff&rev=380&r1=379&r2=380
==============================================================================
--- trunk/config/numberplan.html (original)
+++ trunk/config/numberplan.html Mon Feb 26 16:28:41 2007
@@ -480,10 +480,10 @@
}
numplan_callbacks.loaded = function() {
- if (document.addEventListener){
- document.addEventListener("change", select_differentplan, false);
- } else if (document.attachEvent){
- document.attachEvent('onchange', select_differentplan);
+ if ($('extensions').addEventListener){
+ $('extensions').addEventListener("change", select_differentplan, false);
+ } else if ($('extensions').attachEvent){
+ $('extensions').attachEvent('onchange', select_differentplan);
}
if($('extensions').options.length ==0 ){
parent.loadscreen(this);
More information about the asterisk-gui-commits
mailing list