=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/controllers.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/controllers.js 2015-10-07 13:47:02 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/controllers.js 2015-10-07 14:23:42 +0000 @@ -966,6 +966,14 @@ } }); + $scope.interacted = function(field) { + var status = false; + if(field){ + status = $scope.outerForm.submitted || field.$dirty; + } + return status; + }; + //listen for rule effect changes $scope.$on('ruleeffectsupdated', function(event, args) { $scope.warningMessages = []; === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/defaultForm.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/defaultForm.html 2015-10-07 13:47:02 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/defaultForm.html 2015-10-07 14:23:42 +0000 @@ -34,7 +34,7 @@ name="eventDate" input-field-id='eventDate' class="form-control"> -
+
@@ -49,7 +49,7 @@ d2-coordinate-validator ng-required="false" class="form-control"/> -
+
@@ -64,7 +64,7 @@ d2-coordinate-validator ng-required="false" class="form-control"/> -
+
@@ -239,7 +239,7 @@ class="form-control">
-
+
@@ -274,7 +274,7 @@ name="eventDate" input-field-id='eventDate' class="form-control"> -
+
@@ -289,7 +289,7 @@ d2-coordinate-validator ng-required="false" class="form-control"/> -
+
@@ -304,7 +304,7 @@ d2-coordinate-validator ng-required="false" class="form-control"/> -
+
@@ -504,7 +504,7 @@ class="form-control"/>
-
+
{{warningMessages[de.dataElement.id]}} === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/ec-custom-form.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/ec-custom-form.html 2015-10-07 13:47:02 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/ec-custom-form.html 2015-10-07 14:23:42 +0000 @@ -22,7 +22,7 @@ name="eventDate" input-field-id='eventDate' class="form-control"> -
+
@@ -36,7 +36,7 @@ d2-coordinate-validator ng-required="false" class="form-control"/> -
+
@@ -51,7 +51,7 @@ d2-coordinate-validator ng-required="false" class="form-control"/> -
+
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/eventList.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/eventList.html 2015-10-07 13:47:02 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/eventList.html 2015-10-07 14:23:42 +0000 @@ -332,7 +332,7 @@ name="foo" ng-class="getInputNotifcationClass(eventGridColumn.id,false)"/>
-
+
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js 2015-10-07 13:47:02 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js 2015-10-07 14:23:42 +0000 @@ -443,7 +443,7 @@ } } } - newInputField = newInputField + ' '; + newInputField = newInputField + ' '; htmlCode = htmlCode.replace(inputField, newInputField); } @@ -609,7 +609,7 @@ } } - newInputField = newInputField + ' '; + newInputField = newInputField + ' '; htmlCode = htmlCode.replace(inputField, newInputField); }