From c0a5b0af02fdd8b07c191af1c0151eefe560e13a Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Fri, 30 Aug 2013 15:25:27 -0700 Subject: [PATCH] added tip directive for defining question mark tooltips --- js/directives.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/js/directives.js b/js/directives.js index 3157eb6255e5f..b199127efadfd 100644 --- a/js/directives.js +++ b/js/directives.js @@ -20,6 +20,15 @@ angular.module('kibana.directives', []) } }; }) +.directive('tip', function($compile) { + return { + restrict: 'E', + link: function(scope, elem, attrs) { + var _t = ''; + elem.replaceWith($compile(angular.element(_t))(scope)); + } + }; +}) .directive('addPanel', function($compile) { return { restrict: 'A',