diff --git a/NEWS b/NEWS index d3349ca4c..42e084c84 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,7 @@ Bug fixes - [core] always send IMIP messages using UTF-8 - [web] fixed mail settings persistence when sorting by arrival date - [web] disable submit button while saving an event or a task (#3880) + - [web] disable submit button while saving a contact - [web] fixed computation of week number - [web] fixed and improved IMAP folder subscriptions manager (#3865) - [web] fixed Sieve script activation when vacation start date is in the future (#3885) diff --git a/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox b/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox index 3cbb693b2..af79827dc 100644 --- a/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox +++ b/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox @@ -22,12 +22,14 @@ + ng-click="editor.reset(contactForm)"> undo + type="submit" + ng-disabled="contactForm.$pristine || contactForm.$invalid || contactForm.$submitted" + ng-click="editor.save(contactForm)"> save @@ -36,358 +38,363 @@

{{editor.card.$description()}}
- - -
- - - - - -
- - - - - - - - - - - - -
-
- - - - - - - - - - - - -
+ - -
-
- - remove_circle - - + +
+ + + + + + +
+ - + + + + + + + + +
-
-
- - add_circle - - -
- - - {{$chip.value}} - - {{category.value}} - - +
+ + + + + + + + + + + + +
- -
-
+ +
- + remove_circle - - - {{ type }} - - - +
- + add_circle
-
- -
-
- - remove_circle - - - - - -
-
- - add_circle - - -
-
+ + + {{$chip.value}} + + {{category.value}} + + - -
-
- - remove_circle - -
-
- -
-
-
- + +
+
+ remove_circle - - - {{ type }} - - - +
-
-
- - add_circle - - -
-
- - -
-
-
- - remove_circle +
+ + add_circle - - - {{ type }} - - - - - - +
-
- - add_circle - - -
-
- -
-
-
- + +
+
+ remove_circle -
-
- - - {{ type }} - - - - - - -
-
- - - - - - - - -
-
- - - - - - - - -
-
- - - - - - - - +
+ + +
+
+
+ + add_circle + + +
+
+ + +
+
+
+ + remove_circle + + + + {{ type }} + + + + + + +
+
+
+ + add_circle + + +
+
+ + +
+
+
+ + remove_circle + + + + {{ type }} + + + + + + +
+
+
+ + add_circle + + +
+
+ + +
+
+
+ + remove_circle + +
+
+ + + {{ type }} + + + + + + +
+
+ + + + + + + + +
+
+ + + + + + + + +
+
+ + + + + + + + +
+
+ + add_circle + + +
-
- - add_circle - - -
+ + + + + +
- - - - - - + +
+ + + + - -
- - - - - - - - - + + + + - - - - - - -
- - + + + + + + +
+ + +
diff --git a/UI/WebServerResources/js/Contacts/CardController.js b/UI/WebServerResources/js/Contacts/CardController.js index 37cf9af2e..a81e51be9 100644 --- a/UI/WebServerResources/js/Contacts/CardController.js +++ b/UI/WebServerResources/js/Contacts/CardController.js @@ -128,8 +128,9 @@ delete AddressBook.selectedFolder.selectedCard; }); } - function reset() { + function reset(form) { vm.card.$reset(); + form.$setPristine(); } function cancel() { vm.card.$reset();