X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=js%2Finserts.js;h=0dd141650f64203d2f864004ae8fd926f0d11728;hb=66b76b3be910e0f5dc5a26384c4cfce20579a70d;hp=0c991a86390794fae73e70a9c25e2a52dbd67c10;hpb=f14d54f1294a8120fafc54bfb99d32cdcecb32a0;p=fa-stable.git diff --git a/js/inserts.js b/js/inserts.js index 0c991a86..0dd14165 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -162,7 +162,7 @@ function _set_combo_select(e) { event.returnValue = false; return false; } - if (box && (key == 32) && (this.className == 'combo2')) { + if (box && (key == 32) && (string_contains(this.className, 'combo2'))) { this.style.display = 'none'; box.style.display = 'inline'; box.value=''; @@ -275,12 +275,12 @@ var inserts = { 'input': function(e) { if(e.onfocus==undefined) { e.onfocus = function() { - save_focus(this); - if (this.className == 'combo' || this.className == 'combo3') + save_focus(this); + if (string_contains(this.className, 'combo') || string_contains(this.className, 'combo3')) this.select(); }; } - if (e.className == 'combo' || e.className == 'combo2' || e.className == 'combo3') { + if (string_contains(e.className, 'combo') || string_contains(e.className, 'combo2') || string_contains(e.className, 'combo3')) { _set_combo_input(e); } else