From 5beb1de805183d26649a2df3584377ad7d085ccd Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Mon, 11 Jan 2016 16:56:58 -0800 Subject: [PATCH] [Time Conductor] Display validation errors consistently --- .../general/res/templates/controls/datetime-field.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/commonUI/general/res/templates/controls/datetime-field.html b/platform/commonUI/general/res/templates/controls/datetime-field.html index 51bfe979b7..5aa4ea29ee 100644 --- a/platform/commonUI/general/res/templates/controls/datetime-field.html +++ b/platform/commonUI/general/res/templates/controls/datetime-field.html @@ -25,8 +25,7 @@ ng-model="textValue" ng-blur="restoreTextValue(); ngBlur()" ng-class="{ - error: textInvalid, - test: structure.validate && !structure.validate(ngModel[field]) + error: textInvalid || (structure.validate && !structure.validate(ngModel[field])) }">