From 68074ad82e1f76ec1add006487fec7e60df75fc3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 11 Jun 2005 20:11:41 +0000 Subject: [PATCH] fixed proxy to to add options to a selectbox, needed by IE ;-) --- etemplate/js/etemplate.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/etemplate/js/etemplate.js b/etemplate/js/etemplate.js index d754c29d72..bf9c461eb5 100644 --- a/etemplate/js/etemplate.js +++ b/etemplate/js/etemplate.js @@ -80,18 +80,12 @@ function activate_tab(tab,all_tabs,name) function selectbox_add_option(id,label,value,do_onchange) { selectBox = document.getElementById(id); + /*alert('selectbox_add_option('+id+','+label+','+value+') '+selectBox);*/ for (i=0; i < selectBox.length; i++) { if (selectBox.options[i].value == value) { selectBox.options[i].selected = true; break; } - else if (value.slice(0,1) == "," && selectBox.options[i].value.slice(0,1) == ",") { - selectBox.options[i].value = value; - selectBox.options[i].text = "multiple*"; - selectBox.options[i].title = label; - selectBox.options[i].selected = true; - break; - } } if (i >= selectBox.length) { selectBox.options[selectBox.length] = new Option(label,value,false,true);