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

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


Author: pari
Date: Tue May 29 16:50:46 2007
New Revision: 994

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

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=994&r1=993&r2=994
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Tue May 29 16:50:46 2007
@@ -52,6 +52,14 @@
 			el.add(new Option (txt,val), i ); 
 		}else{ 
 			el.add(new Option (txt,val), el.options[i] );
+		} 
+	},
+
+	selectbox_insertOption_before: function(el,opt, i){
+		if(isIE){ 
+			el.add(opt, i ); 
+		}else{ 
+			el.add(opt, el.options[i] );
 		} 
 	},
 



More information about the asterisk-gui-commits mailing list