Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorAndrejs Verza <andrejs.verza@zabbix.com>2022-11-07 15:42:18 +0300
committerAndrejs Verza <andrejs.verza@zabbix.com>2022-11-07 15:42:18 +0300
commit3adb02dc1787318c461afd99eafe089a679bbfd2 (patch)
tree3e8f8ef9798eeb7aafc5f2f76296bbe72721329b /ui
parentc4c6761fb7513c0ff53c95c97c6d9f2f796c6456 (diff)
..F....... [ZBXNEXT-7469] fixed dropped HTTP connections on loading widget editing form
Diffstat (limited to 'ui')
-rw-r--r--ui/js/class.dashboard.widget.placeholder.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/js/class.dashboard.widget.placeholder.js b/ui/js/class.dashboard.widget.placeholder.js
index 1a5e30307f0..892f06c7f16 100644
--- a/ui/js/class.dashboard.widget.placeholder.js
+++ b/ui/js/class.dashboard.widget.placeholder.js
@@ -94,7 +94,11 @@ class CDashboardWidgetPlaceholder extends CBaseComponent {
link.textContent = t('Add a new widget');
link.href = 'javascript:void(0)';
- this._target.addEventListener('click', () => this.fire(WIDGET_PLACEHOLDER_EVENT_ADD_NEW_WIDGET));
+ this._target.addEventListener('click', (e) => {
+ e.stopImmediatePropagation();
+
+ this.fire(WIDGET_PLACEHOLDER_EVENT_ADD_NEW_WIDGET);
+ });
this._placeholder_box_label_wrap.appendChild(link);