1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-26 21:23:34 +00:00
Files
browser/src/app/directives/stopClickDirective.js
Kyle Spearrin 366506555a lint fixes
2017-06-07 21:19:37 -04:00

12 lines
311 B
JavaScript

angular
.module('bit.directives')
// ref: https://stackoverflow.com/a/14165848/1090359
.directive('stopClick', function () {
return function (scope, element, attrs) {
$(element).click(function (event) {
event.preventDefault();
});
};
});