From 34893d5f53a0835382bb1383ddb6b415917f837e Mon Sep 17 00:00:00 2001 From: Per Ploug Date: Wed, 24 Jun 2015 10:22:22 +0200 Subject: [PATCH] Delete dublicate event file --- .../src/common/directives/util.directive.js | 56 ------------------- 1 file changed, 56 deletions(-) delete mode 100644 src/Umbraco.Web.UI.Client/src/common/directives/util.directive.js diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/util.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/util.directive.js deleted file mode 100644 index ebc4bcea7e..0000000000 --- a/src/Umbraco.Web.UI.Client/src/common/directives/util.directive.js +++ /dev/null @@ -1,56 +0,0 @@ -/** -* @description Utillity directives for key and field events -**/ -angular.module('umbraco.directives') - -.directive('onKeyup', function () { - return function (scope, elm, attrs) { - elm.bind("keyup", function () { - scope.$apply(attrs.onKeyup); - }); - }; -}) - -.directive('onKeydown', function () { - return { - link: function (scope, elm, attrs) { - scope.$apply(attrs.onKeydown); - } - }; -}) - -.directive('onBlur', function () { - return function (scope, elm, attrs) { - elm.bind("blur", function () { - scope.$apply(attrs.onBlur); - }); - }; -}) - -.directive('onFocus', function () { - return function (scope, elm, attrs) { - elm.bind("focus", function () { - scope.$apply(attrs.onFocus); - }); - }; -}) - -.directive('onRightClick',function(){ - - document.oncontextmenu = function (e) { - if(e.target.hasAttribute('on-right-click')) { - e.preventDefault(); - e.stopPropagation(); - return false; - } - }; - - return function(scope,el,attrs){ - el.bind('contextmenu',function(e){ - e.preventDefault(); - e.stopPropagation(); - scope.$apply(attrs.onRightClick); - return false; - }); - }; -}); \ No newline at end of file