show warning only if form is $dirty
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 25 Jan 2013 12:29:12 +0000 (13:29 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 25 Jan 2013 12:29:12 +0000 (13:29 +0100)
app/partials/registration.html.ep

index 5ddbf89..cde9f88 100644 (file)
@@ -246,7 +246,7 @@ hr => 'Dodaj još jedan rad na simpoziju' %>
 
 <button class="controls-row btn btn-primary" id="update-registration" ng-click="update(registration,'confirmation')" ng-show="RegistrationForm.$valid"><%= locale en=>'Submit',hr=>'Pošalji' %></button>
 
-<p class="well" style="color: red" ng-show="! RegistrationForm.$valid">
+<p class="well" style="color: red" ng-show="! RegistrationForm.$valid && RegistrationForm.$dirty">
 <%= locale
 en => 'Please fill all required fields correctly. Fields with red border call for your attention.',
 hr => 'Molimo ispunite sva obavezna polja označena crvenim okvirom.'