From 4a2b55f7f84df5fa3562b18a2dc52861e7ec1e20 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 9 Sep 2009 09:19:35 +0000 Subject: [PATCH] Activated javascript confirm dialogs. --- js/inserts.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"); -- 2.30.2