X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=js%2Finserts.js;h=2b244ec5872fe3a0db152e40d212a8b6c3ac47ed;hb=c7a6b173102b5df624ce18780e057b3d61953ce6;hp=43b5f43ba2ed1511723b12d48936863d456b0bca;hpb=e364d7f526ead371805d80e0ce66ac90a090dbee;p=fa-stable.git diff --git a/js/inserts.js b/js/inserts.js index 43b5f43b..2b244ec5 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -85,9 +85,7 @@ function _update_box(s) { var box = document.getElementsByName(rel)[0]; if(box && s.selectedIndex>=0) { var opt = s.options[s.selectedIndex]; - if (opt.value != 0) { if(box) box.value = byid ? opt.value : opt.text; - } } } @@ -143,16 +141,7 @@ var inserts = { // this hides search button for js enabled browsers e.style.display = 'none'; }, -/* 'select.combo,select.combo2': - function(e) { - var box = document.getElementsByName(e.getAttribute('rel'))[0]; - if(box) { - box.style.width = 200+'px'; - e.style.width = 200+'px'; - debug(e.name+':'+e.style.width) - } - }, -*/ 'input.ajaxsubmit,input.editbutton,input.navibutton': + 'input.ajaxsubmit,input.editbutton,input.navibutton': function(e) { e.onclick = function() { JsHttpRequest.request(this.name);