mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-14 11:57:38 +08:00
24 lines
444 B
JavaScript
24 lines
444 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* @ngdoc directive
|
|
* @name passmanApp.directive:passwordGen
|
|
* @description
|
|
* # passwordGen
|
|
*/
|
|
angular.module('passmanApp')
|
|
.directive('tooltip', ['$window', function ($window) {
|
|
return {
|
|
restrict: 'A',
|
|
scope: {
|
|
tooltip: '=tooltip'
|
|
},
|
|
|
|
link: function (scope, el, attr, ctrl) {
|
|
scope.$watch('tooltip', function(){
|
|
$(el).attr('title', scope.tooltip);
|
|
$(el).tooltip()
|
|
})
|
|
}
|
|
};
|
|
}]);
|