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

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue May 29 14:47:42 MST 2007


Author: pari
Date: Tue May 29 16:47:42 2007
New Revision: 993

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=993
Log:
sometimes we might have to add an OptionNode to the select box element

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=993&r1=992&r2=993
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Tue May 29 16:47:42 2007
@@ -57,6 +57,14 @@
 
 	selectbox_push: function(el,txt, val){
 		el.options[el.options.length] = new Option (txt,val);
+	},
+
+	selectbox_push_option: function(el,opt){
+		if(isIE){
+			el.add(opt);
+		} else{ 
+			el.add(opt,null);
+		}
 	},
 
 	selectbox_remove_i: function(el, i){



More information about the asterisk-gui-commits mailing list