X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=js%2Finserts.js;h=244792bc12391ac7e78149100cdfc853436fa631;hb=1dac556ad192e3a23c25151bc2551bcdc9b9685c;hp=33bff885f6bd22d0f6ed166aa2e68ca4f166ecc3;hpb=fed6bc04a7b050a0b69136a332e92ee651812487;p=fa-stable.git diff --git a/js/inserts.js b/js/inserts.js index 33bff885..244792bc 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -111,7 +111,7 @@ function _set_combo_select(e) { } e.onchange = function() { var s = this; - + this.setAttribute('_last', this.selectedIndex); if(s.className=='combo') _update_box(s); if(s.selectedIndex>=0) { @@ -153,7 +153,7 @@ var inserts = { _set_combo_input(e); } }, - 'input.combo_submit,input.combo_select,input.combo2': + 'input.combo2,input[fallback]': function(e) { // this hides search button for js enabled browsers e.style.display = 'none'; @@ -184,7 +184,7 @@ var inserts = { JsHttpRequest.request('_'+this.name+'_changed', this.form); } } - e.onkeydown = function(ev) { +/* e.onkeydown = function(ev) { ev = ev||window.event; key = ev.keyCode||ev.which; if (key == 13 && (this.value != this.getAttribute('_last_val'))) { @@ -192,7 +192,7 @@ var inserts = { return false; } } - }, +*/ }, 'select': function(e) { if(e.onfocus==undefined) { e.onfocus = function() {