From c7b1c1a0dc902932e52aaef68fcce3422e21cd94 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Thu, 11 Feb 2016 20:55:38 +0300 Subject: [PATCH] New plugin API - fixed module.js --- plugins/datasource-zabbix/module.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/plugins/datasource-zabbix/module.js b/plugins/datasource-zabbix/module.js index 846f37e..38722d9 100644 --- a/plugins/datasource-zabbix/module.js +++ b/plugins/datasource-zabbix/module.js @@ -5,17 +5,14 @@ define([ function (ZabbixAPIDatasource, ZabbixQueryCtrl) { 'use strict'; - function ZabbixQueryOptionsCtrl() { - return {templateUrl: 'public/plugins/zabbix/partials/query.options.html'}; - } + function ZabbixQueryOptionsCtrl() {} + ZabbixQueryOptionsCtrl.templateUrl = 'partials/query.options.html'; - function ZabbixAnnotationsQueryCtrl() { - return {templateUrl: 'public/plugins/zabbix/partials/annotations.editor.html'}; - } + function ZabbixAnnotationsQueryCtrl() {} + ZabbixAnnotationsQueryCtrl.templateUrl = 'partials/annotations.editor.html'; - function ZabbixConfigCtrl() { - return {templateUrl: 'public/plugins/zabbix/partials/config.html'}; - } + function ZabbixConfigCtrl() {} + ZabbixConfigCtrl.templateUrl = 'partials/config.html'; return { Datasource: ZabbixAPIDatasource,