1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-09-19 23:21:47 +02:00
polr/public/js/SetupCtrl.js

21 lines
522 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();
});