mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
remove awNoDash directive
This commit is contained in:
parent
a1942e65cd
commit
aef95b2c1a
@ -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) {
|
.directive('awMin', ['Empty', function (Empty) {
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
|
@ -162,7 +162,6 @@
|
|||||||
<div class="error" ng-show="prompt_for_days_form.days_to_keep.$dirty && (prompt_for_days_form.days_to_keep.$error.number || prompt_for_days_form.days_to_keep.$error.integer ||
|
<div class="error" ng-show="prompt_for_days_form.days_to_keep.$dirty && (prompt_for_days_form.days_to_keep.$error.number || prompt_for_days_form.days_to_keep.$error.integer ||
|
||||||
prompt_for_days_form.days_to_keep.$error.required ||
|
prompt_for_days_form.days_to_keep.$error.required ||
|
||||||
prompt_for_days_form.days_to_keep.$error.min ||
|
prompt_for_days_form.days_to_keep.$error.min ||
|
||||||
prompt_for_days_form.days_to_keep.$error.awNoDash ||
|
|
||||||
prompt_for_days_form.days_to_keep.$error.max)">Please enter an integer<span ng-show="prompt_for_days_form.days_to_keep.$dirty && prompt_for_days_form.days_to_keep.$error.min"> that is not negative</span><span ng-show="prompt_for_days_form.days_to_keep.$dirty && prompt_for_days_form.days_to_keep.$error.max"> that is lower than 9999</span>.</div>
|
prompt_for_days_form.days_to_keep.$error.max)">Please enter an integer<span ng-show="prompt_for_days_form.days_to_keep.$dirty && prompt_for_days_form.days_to_keep.$error.min"> that is not negative</span><span ng-show="prompt_for_days_form.days_to_keep.$dirty && prompt_for_days_form.days_to_keep.$error.max"> that is lower than 9999</span>.</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -190,7 +189,6 @@
|
|||||||
<div class="error" ng-show="prompt_for_days_facts_form.keep_amount.$dirty && (prompt_for_days_facts_form.keep_amount.$error.number || prompt_for_days_facts_form.keep_amount.$error.integer ||
|
<div class="error" ng-show="prompt_for_days_facts_form.keep_amount.$dirty && (prompt_for_days_facts_form.keep_amount.$error.number || prompt_for_days_facts_form.keep_amount.$error.integer ||
|
||||||
prompt_for_days_facts_form.keep_amount.$error.required ||
|
prompt_for_days_facts_form.keep_amount.$error.required ||
|
||||||
prompt_for_days_facts_form.keep_amount.$error.min ||
|
prompt_for_days_facts_form.keep_amount.$error.min ||
|
||||||
prompt_for_days_facts_form.keep_amount.$error.awNoDash ||
|
|
||||||
prompt_for_days_facts_form.keep_amount.$error.max)">Please enter an integer<span ng-show="prompt_for_days_facts_form.keep_amount.$dirty && prompt_for_days_facts_form.keep_amount.$error.min"> that is not negative</span><span ng-show="prompt_for_days_facts_form.keep_amount.$dirty && prompt_for_days_facts_form.keep_amount.$error.max"> that is lower than 9999</span>.</div>
|
prompt_for_days_facts_form.keep_amount.$error.max)">Please enter an integer<span ng-show="prompt_for_days_facts_form.keep_amount.$dirty && prompt_for_days_facts_form.keep_amount.$error.min"> that is not negative</span><span ng-show="prompt_for_days_facts_form.keep_amount.$dirty && prompt_for_days_facts_form.keep_amount.$error.max"> that is lower than 9999</span>.</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group ">
|
<div class="form-group ">
|
||||||
@ -211,7 +209,6 @@
|
|||||||
<div class="error" ng-show="prompt_for_days_facts_form.granularity_keep_amount.$dirty && (prompt_for_days_facts_form.granularity_keep_amount.$error.number || prompt_for_days_facts_form.granularity_keep_amount.$error.integer ||
|
<div class="error" ng-show="prompt_for_days_facts_form.granularity_keep_amount.$dirty && (prompt_for_days_facts_form.granularity_keep_amount.$error.number || prompt_for_days_facts_form.granularity_keep_amount.$error.integer ||
|
||||||
prompt_for_days_facts_form.granularity_keep_amount.$error.required ||
|
prompt_for_days_facts_form.granularity_keep_amount.$error.required ||
|
||||||
prompt_for_days_facts_form.granularity_keep_amount.$error.min ||
|
prompt_for_days_facts_form.granularity_keep_amount.$error.min ||
|
||||||
prompt_for_days_facts_form.granularity_keep_amount.$error.awNoDash ||
|
|
||||||
prompt_for_days_facts_form.granularity_keep_amount.$error.max)">Please enter an integer<span ng-show="prompt_for_days_facts_form.granularity_keep_amount.$dirty && prompt_for_days_facts_form.granularity_keep_amount.$error.min"> that is not negative</span><span ng-show="prompt_for_days_facts_form.granularity_keep_amount.$dirty && prompt_for_days_facts_form.granularity_keep_amount.$error.max"> that is lower than 9999</span>.</div>
|
prompt_for_days_facts_form.granularity_keep_amount.$error.max)">Please enter an integer<span ng-show="prompt_for_days_facts_form.granularity_keep_amount.$dirty && prompt_for_days_facts_form.granularity_keep_amount.$error.min"> that is not negative</span><span ng-show="prompt_for_days_facts_form.granularity_keep_amount.$dirty && prompt_for_days_facts_form.granularity_keep_amount.$error.max"> that is lower than 9999</span>.</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user