From 4e1df42f36d9a4644ee41d7da26df0e48a1e10f6 Mon Sep 17 00:00:00 2001 From: yuri Date: Wed, 13 Sep 2017 11:03:45 +0300 Subject: [PATCH] event stop propagation --- client/src/views/main.js | 1 + client/src/views/record/detail.js | 1 + 2 files changed, 2 insertions(+) diff --git a/client/src/views/main.js b/client/src/views/main.js index f03bb6031d..32a3889f47 100644 --- a/client/src/views/main.js +++ b/client/src/views/main.js @@ -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); } } diff --git a/client/src/views/record/detail.js b/client/src/views/record/detail.js index 91e932c109..af82c2995a 100644 --- a/client/src/views/record/detail.js +++ b/client/src/views/record/detail.js @@ -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(); } }