event stop propagation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user