From: Janusz Dobrowolski Date: Wed, 9 Sep 2009 09:19:35 +0000 (+0000) Subject: Activated javascript confirm dialogs. X-Git-Tag: v2.4.2~19^2~1264 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=4a2b55f7f84df5fa3562b18a2dc52861e7ec1e20;p=fa-stable.git Activated javascript confirm dialogs. --- 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");