From 4997068a0d4acdb7ab3f59b5ad57654ad81a333b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 24 Sep 2014 19:10:00 +0200 Subject: [PATCH] Added directive element for the new checkboxes --- src/app/directives/tip.js | 13 +++++++++---- src/app/partials/share-panel.html | 12 ++---------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/app/directives/tip.js b/src/app/directives/tip.js index ff364b35569..d9dd5145a62 100644 --- a/src/app/directives/tip.js +++ b/src/app/directives/tip.js @@ -20,13 +20,18 @@ function (angular, kbn) { angular .module('grafana.directives') - .directive('tip', function($compile) { + .directive('editorOptBool', function($compile) { return { restrict: 'E', link: function(scope, elem, attrs) { - var _t = ''; - elem.replaceWith($compile(angular.element(_t))(scope)); + var template = '
' + + ' ' + + '' + + ' '; + elem.replaceWith($compile(angular.element(template))(scope)); } }; }); diff --git a/src/app/partials/share-panel.html b/src/app/partials/share-panel.html index 3eb7c4daec8..efbfcb42ab7 100644 --- a/src/app/partials/share-panel.html +++ b/src/app/partials/share-panel.html @@ -16,16 +16,8 @@