diff --git a/web/js/ajaxUtils.js b/web/js/ajaxUtils.js index 3d5f776..4797599 100644 --- a/web/js/ajaxUtils.js +++ b/web/js/ajaxUtils.js @@ -39,9 +39,22 @@ function buildOptions(xmlDoc,id) { for (var i=0; i { + return option.attributes[0].nodeValue.indexOf('SP') === -1; + }); + selectObjNew.options[len] = new Option(filteredOptions[i].attributes[1].nodeValue, filteredOptions[i].attributes[0].nodeValue); + if (filteredOptions[i].attributes[2].nodeValue =="selected") { + selectObjNew.options[len].selected = true; + } + }else{ + selectObjNew.options[len] = new Option(options[i].attributes[1].nodeValue, options[i].attributes[0].nodeValue); + if (options[i].attributes[2].nodeValue =="selected") { + selectObjNew.options[len].selected = true; + } } + + } }