pari: trunk r304 - /trunk/config/incoming.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Tue Jan 30 10:14:58 MST 2007
Author: pari
Date: Tue Jan 30 11:14:57 2007
New Revision: 304
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=304
Log:
fix: Adding Options to the extnesions select box the proper way
Modified:
trunk/config/incoming.html
Modified: trunk/config/incoming.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/incoming.html?view=diff&rev=304&r1=303&r2=304
==============================================================================
--- trunk/config/incoming.html (original)
+++ trunk/config/incoming.html Tue Jan 30 11:14:57 2007
@@ -90,7 +90,15 @@
listOfExtensions.sort();
for(var a =0; a < listOfExtensions.length ; a++ ){
var b = listOfExtensions[a].split(' -- ');
- $('toextension').innerHTML = $('toextension').innerHTML + "<option value='" + b[0] + "'>" + listOfExtensions[a] + "</option>";
+ //$('toextension').innerHTML = $('toextension').innerHTML + "<option value='" + b[0] + "'>" + listOfExtensions[a] + "</option>";
+ var New_OPTION = document.createElement('option');
+ New_OPTION.text = listOfExtensions[a] ;
+ New_OPTION.value = b[0] ;
+ try {
+ $('toextension').add(New_OPTION, null); // W3C way
+ }catch(ex) {
+ $('toextension').add(New_OPTION); // IE way
+ }
}
// load list of trunks to 'fromprovider'
More information about the asterisk-gui-commits
mailing list