function config_close() { window.close("chrome://openerp_plugin/content/config_change.xul", "", "chrome"); window.open("chrome://openerp_plugin/content/config.xul", "", "chrome"); } function createMenuItem(aLabel, aValue) { const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; var item = document.createElementNS(XUL_NS, "menuitem"); // create a new XUL menuitem item.setAttribute("label", aLabel); item.setAttribute("value", aValue); return item; } //set the value of the configuration fields function config_change_load() { var s = getServer(); var a =s.split(':'); var popup = document.getElementById("dbprotocol_list"); popup.menupopup.appendChild(createMenuItem('XML-RPC','http://')); popup.menupopup.appendChild(createMenuItem('XML-RPCS','https://')); if (String(a)=="" || String(a)=="undefined"){ document.getElementById('txtcurl').value = "localhost" document.getElementById('txtcport').value = "8069" } else { len = a[1]; var url = ""; for (i=0;i0){ var objectcharpref = ''; var imagecharpref = ''; var objcharpref = ''; var nodelist = document.getElementById("listObjectListBox").selectedItem.childNodes var childnode = document.getElementById("listObjectListBox").childNodes for(i=2;i