diff options
author | Alexander Shubin <aleksandrs.subins@zabbix.com> | 2021-02-09 14:01:25 +0300 |
---|---|---|
committer | Alexander Shubin <aleksandrs.subins@zabbix.com> | 2021-02-09 14:03:20 +0300 |
commit | 91b1b65fbff379ec57d6512e1e62f44adb096f53 (patch) | |
tree | 1e10000f4d2144c04858b75988185c2a4c60f261 /ui/app/controllers | |
parent | 7c3cc4a8549ad73fa6ed0a3b6d38c78c2c1ebd12 (diff) |
..F....... [ZBXNEXT-6309] removed _methods object
Diffstat (limited to 'ui/app/controllers')
-rw-r--r-- | ui/app/controllers/CControllerFavouriteDelete.php | 4 | ||||
-rw-r--r-- | ui/app/controllers/CControllerWidgetSvgGraphView.php | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ui/app/controllers/CControllerFavouriteDelete.php b/ui/app/controllers/CControllerFavouriteDelete.php index fea8f5596d0..ba4767c85c9 100644 --- a/ui/app/controllers/CControllerFavouriteDelete.php +++ b/ui/app/controllers/CControllerFavouriteDelete.php @@ -74,9 +74,9 @@ class CControllerFavouriteDelete extends CController { 'switchElementClass(\'addrm_fav\', \'btn-remove-fav\', \'btn-add-fav\');'."\n". '}'."\n". 'else {'."\n". - 'var $widgets = ZABBIX.Dashboard._methods.getWidgetsBy("type", "'.$widgetids[$object].'");'."\n". + 'var $widgets = ZABBIX.Dashboard.getWidgetsBy("type", "'.$widgetids[$object].'");'."\n". 'jQuery.each($widgets, function(index, widget) {'."\n". - 'ZABBIX.Dashboard._methods.refreshWidget(widget["widgetid"]);'."\n". + 'ZABBIX.Dashboard.refreshWidget(widget["widgetid"]);'."\n". '});'."\n". '}'; } diff --git a/ui/app/controllers/CControllerWidgetSvgGraphView.php b/ui/app/controllers/CControllerWidgetSvgGraphView.php index 1dd3e876a86..67fd84a50aa 100644 --- a/ui/app/controllers/CControllerWidgetSvgGraphView.php +++ b/ui/app/controllers/CControllerWidgetSvgGraphView.php @@ -118,7 +118,7 @@ class CControllerWidgetSvgGraphView extends CControllerWidget { if ($initial_load) { $script_inline .= 'jQuery.subscribe("timeselector.rangeupdate", function(e, data) {'. - 'ZABBIX.Dashboard._methods.refreshWidget("'.$uniqueid.'");'. + 'ZABBIX.Dashboard.refreshWidget("'.$uniqueid.'");'. '});'; } } @@ -147,14 +147,14 @@ class CControllerWidgetSvgGraphView extends CControllerWidget { ]); $script_inline .= - 'var widget = ZABBIX.Dashboard._methods.getWidgetsBy(\'uniqueid\', "'.$uniqueid.'");'. + 'var widget = ZABBIX.Dashboard.getWidgetsBy(\'uniqueid\', "'.$uniqueid.'");'. 'jQuery(\'svg\', widget[0]["content_body"]).svggraph('.json_encode($graph_options).', widget[0]);'; } if ($initial_load) { // Register widget auto-refresh when resizing widget. $script_inline .= - 'ZABBIX.Dashboard._methods.addAction("onResizeEnd",'. + 'ZABBIX.Dashboard.addAction("onResizeEnd",'. '"zbx_svggraph_widget_trigger", "'.$uniqueid.'", {'. 'parameters: ["onResizeEnd"],'. 'grid: {widget: 1},'. @@ -163,7 +163,7 @@ class CControllerWidgetSvgGraphView extends CControllerWidget { // Disable SBox when switch to edit mode. $script_inline .= - 'ZABBIX.Dashboard._methods.addAction("onEditStart",'. + 'ZABBIX.Dashboard.addAction("onEditStart",'. '"zbx_svggraph_widget_trigger", "'.$uniqueid.'", {'. 'parameters: ["onEditStart"],'. 'grid: {widget: 1},'. |