diff --git a/src/app/directives/stopClickDirective.js b/src/app/directives/stopClickDirective.js new file mode 100644 index 0000000000..225b55ee59 --- /dev/null +++ b/src/app/directives/stopClickDirective.js @@ -0,0 +1,11 @@ +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(); + }); + } + }); diff --git a/src/app/organization/views/organizationCollections.html b/src/app/organization/views/organizationCollections.html index 9e785aeb1b..0af8f94310 100644 --- a/src/app/organization/views/organizationCollections.html +++ b/src/app/organization/views/organizationCollections.html @@ -44,12 +44,12 @@