dneuman64 closed pull request #2014: [Issue 1992] - allows negative numbers for 
steering order
URL: https://github.com/apache/incubator-trafficcontrol/pull/2014
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/traffic_portal/app/src/common/modules/form/deliveryServiceTarget/form.deliveryServiceTarget.tpl.html
 
b/traffic_portal/app/src/common/modules/form/deliveryServiceTarget/form.deliveryServiceTarget.tpl.html
index 33b07952f..1e1640de8 100644
--- 
a/traffic_portal/app/src/common/modules/form/deliveryServiceTarget/form.deliveryServiceTarget.tpl.html
+++ 
b/traffic_portal/app/src/common/modules/form/deliveryServiceTarget/form.deliveryServiceTarget.tpl.html
@@ -57,10 +57,10 @@
             <div class="form-group" ng-class="{'has-error': 
hasError(dsTargetForm.value), 'has-feedback': hasError(dsTargetForm.value)}">
                 <label class="control-label col-md-2 col-sm-2 col-xs-12">Value 
*</label>
                 <div class="col-md-10 col-sm-10 col-xs-12">
-                    <input name="value" type="text" class="form-control" 
ng-model="target.value" ng-maxlength="3" ng-pattern="/^\d+$/" required 
autofocus>
+                    <input name="value" type="text" class="form-control" 
ng-model="target.value" ng-maxlength="3" ng-pattern="/^-?\d+$/" required 
autofocus>
                     <small class="input-error" 
ng-show="hasPropertyError(dsTargetForm.value, 'required')">Required</small>
                     <small class="input-error" 
ng-show="hasPropertyError(dsTargetForm.value, 'maxlength')">Too Long</small>
-                    <small class="input-error" 
ng-show="hasPropertyError(dsTargetForm.value, 'pattern')">Number</small>
+                    <small class="input-error" 
ng-show="hasPropertyError(dsTargetForm.value, 'pattern')">Whole Number</small>
                     <span ng-show="hasError(dsTargetForm.value)" 
class="form-control-feedback"><i class="fa fa-times"></i></span>
                 </div>
             </div>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to