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
diff options
context:
space:
mode:
Diffstat (limited to 'ui/js/dashboard.grid.js')
-rw-r--r--ui/js/dashboard.grid.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/js/dashboard.grid.js b/ui/js/dashboard.grid.js
index 64449797811..469b7d7b6e9 100644
--- a/ui/js/dashboard.grid.js
+++ b/ui/js/dashboard.grid.js
@@ -3853,7 +3853,7 @@
},
/**
- * Function to store copied widget into storage handler.
+ * Function to store copied widget into storage buffer.
*
* @param {object} widget Widget object copied.
*
@@ -3861,6 +3861,11 @@
*/
copyWidget: function(widget) {
return this.each(function() {
+ var $this = $(this),
+ data = $this.data('dashboardGrid');
+
+ doAction('onWidgetCopy', $this, data, widget);
+
var w = {
type: widget.type,
pos: {