X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=js%2Finserts.js;h=4d665e843fbe8b6a73353a745a4cbe16ec7ed96b;hb=36ec54507b7841b2352734b81e45b95e371ecdab;hp=4cfee260b3f83be96fb4e0e500c2441c8ac072e6;hpb=72f59dad7992d77e36dc2f5ada090102666b847a;p=fa-stable.git diff --git a/js/inserts.js b/js/inserts.js index 4cfee260..4d665e84 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -220,12 +220,12 @@ var inserts = { return false; } }, -/* 'button': function(e) { + 'button': function(e) { if (e.name) { var func = _validate[e.name]; var old = e.onclick; - if(func) { - if (typeof old != 'function') { + if(func) { + if (typeof old != 'function' || old == func) { // prevent multiply binding on ajax update e.onclick = func; } else { e.onclick = function() { @@ -238,7 +238,7 @@ var inserts = { } } }, -*/ '.amount': function(e) { + '.amount': function(e) { if(e.onblur==undefined) { e.onblur = function() { var dec = this.getAttribute("dec");