diff --git a/webadmin/src/js/index.js b/webadmin/src/js/index.js index eb516b24f..3c625c323 100644 --- a/webadmin/src/js/index.js +++ b/webadmin/src/js/index.js @@ -322,6 +322,19 @@ app.directive('ngClickSelect', function () { }; }); +app.directive('ngClickReveal', function () { + return { + restrict: 'A', + link: function (scope, element, attrs) { + element.addClass('hand'); + + element.bind('click', function () { + element.text(attrs.ngClickReveal); + }); + } + }; +}); + // https://codepen.io/webmatze/pen/isuHh app.directive('tagInput', function () { return {