From aef95b2c1a44f5f225d523094fef0629ff002564 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Tue, 11 Aug 2015 16:30:58 -0400 Subject: [PATCH] remove awNoDash directive --- awx/ui/client/src/shared/directives.js | 18 ------------------ awx/ui/templates/ui/index.html | 3 --- 2 files changed, 21 deletions(-) diff --git a/awx/ui/client/src/shared/directives.js b/awx/ui/client/src/shared/directives.js index 18d8e707ed..e19de92e60 100644 --- a/awx/ui/client/src/shared/directives.js +++ b/awx/ui/client/src/shared/directives.js @@ -202,24 +202,6 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job }; }) - .directive('awNoDash', ['Empty', function (Empty) { - return { - restrict: 'A', - require: 'ngModel', - link: function (scope, elem, attr, ctrl) { - ctrl.$parsers.unshift( function(viewValue) { - if (!Empty(viewValue) && viewValue === "-") { - ctrl.$setValidity('awNoDash', false); - return viewValue; - } else { - ctrl.$setValidity('awNoDash', true); - return viewValue; - } - }); - } - }; - }]) - .directive('awMin', ['Empty', function (Empty) { return { restrict: 'A', diff --git a/awx/ui/templates/ui/index.html b/awx/ui/templates/ui/index.html index 63d63ebd76..1e632ec794 100644 --- a/awx/ui/templates/ui/index.html +++ b/awx/ui/templates/ui/index.html @@ -162,7 +162,6 @@
Please enter an integer that is not negative that is lower than 9999.
@@ -190,7 +189,6 @@
Please enter an integer that is not negative that is lower than 9999.
@@ -211,7 +209,6 @@
Please enter an integer that is not negative that is lower than 9999.