Merge pull request #451 from rashidkpc/master

added tip directive for defining question mark tooltips
This commit is contained in:
Rashid Khan 2013-08-30 15:26:17 -07:00
commit cd8009eccd

View File

@ -20,6 +20,15 @@ angular.module('kibana.directives', [])
}
};
})
.directive('tip', function($compile) {
return {
restrict: 'E',
link: function(scope, elem, attrs) {
var _t = '<i class="icon-question-sign" bs-tooltip="\''+elem.text()+'\'"></i>';
elem.replaceWith($compile(angular.element(_t))(scope));
}
};
})
.directive('addPanel', function($compile) {
return {
restrict: 'A',