event stop propagation

This commit is contained in:
yuri
2017-09-13 11:03:45 +03:00
parent 9a60ee9fe6
commit 4e1df42f36
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -45,6 +45,7 @@ Espo.define('views/main', 'view', function (Dep) {
var method = 'action' + Espo.Utils.upperCaseFirst(action);
if (typeof this[method] == 'function') {
e.preventDefault();
e.stopPropagation();
this[method].call(this, data, e);
}
}
+1
View File
@@ -127,6 +127,7 @@ Espo.define('views/record/detail', ['views/record/base', 'view-record-helper'],
var method = 'action' + Espo.Utils.upperCaseFirst(action);
if (typeof this[method] == 'function') {
this[method].call(this, data, e);
e.stopPropagation();
e.preventDefault();
}
}