mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 11:42:28 +01:00
21 lines
523 B
JavaScript
21 lines
523 B
JavaScript
polr.directive('setupTooltip', function() {
|
|
return {
|
|
scope: {
|
|
content: '@',
|
|
},
|
|
replace: true,
|
|
template: '<button data-content="{{ content }}" type="button" class="btn btn-xs btn-default setup-qmark" data-toggle="popover">?</button>'
|
|
}
|
|
});
|
|
|
|
polr.controller('SetupCtrl', function($scope) {
|
|
$scope.init = function () {
|
|
$('[data-toggle="popover"]').popover({
|
|
trigger: "hover",
|
|
placement: "right"
|
|
});
|
|
};
|
|
|
|
$scope.init();
|
|
});
|