projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Additional fixes to upgrade scripts.
[fa-stable.git]
/
js
/
inserts.js
diff --git
a/js/inserts.js
b/js/inserts.js
index 4cfee260b3f83be96fb4e0e500c2441c8ac072e6..4d665e843fbe8b6a73353a745a4cbe16ec7ed96b 100644
(file)
--- a/
js/inserts.js
+++ b/
js/inserts.js
@@
-220,12
+220,12
@@
var inserts = {
return false;
}
},
return false;
}
},
-
/*
'button': function(e) {
+
'button': function(e) {
if (e.name) {
var func = _validate[e.name];
var old = e.onclick;
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() {
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");
if(e.onblur==undefined) {
e.onblur = function() {
var dec = this.getAttribute("dec");