From b7bc59d599e1d56d7688d43669a31ce5722115e0 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 23 Mar 2017 12:47:16 -0400 Subject: [PATCH] Enable Save btn after deleting attribute from card Fixes #4095 --- NEWS | 4 +++- .../ContactsUI/UIxContactEditorTemplate.wox | 14 +++++++------- .../js/Contacts/CardController.js | 5 +++++ 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/NEWS b/NEWS index 0c067a784..29e3d6245 100644 --- a/NEWS +++ b/NEWS @@ -8,7 +8,7 @@ Enhancements - [web] constrain event/task reminder to a positive number - [web] display year in day and week views - [web] split string on comma and semicolon when pasting multiple addresses (#4097) - - [web] restrict Draft/Sent/Trash/Junk mailboxes to the top level (#6963) + - [web] restrict Draft/Sent/Trash/Junk mailboxes to the top level Bug fixes - [core] handle broken CalDAV clients sending bogus SENT-BY (#3992) @@ -27,6 +27,8 @@ Bug fixes - [web] fixed SCAYT automatic language selection in HTML editor - [web] fixed task sorting on multiple categories - [web] fixed sanitisation of flags in Sieve filters (#4087) + - [web] fixed missing CC or BCC when specified before sending message (#3944) + - [web] enabled Save button after deleting attributes from a card (#4095) - [eas] fixed opacity in EAS freebusy (#4033) 3.2.7 (2017-02-14) diff --git a/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox b/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox index acebfd8d1..184b2efca 100644 --- a/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox +++ b/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox @@ -97,7 +97,7 @@
- + remove_circle @@ -136,7 +136,7 @@
- + remove_circle @@ -166,7 +166,7 @@
- + remove_circle @@ -189,7 +189,7 @@
- + remove_circle
@@ -214,7 +214,7 @@
- + remove_circle @@ -245,7 +245,7 @@
- + remove_circle @@ -275,7 +275,7 @@
- + remove_circle
diff --git a/UI/WebServerResources/js/Contacts/CardController.js b/UI/WebServerResources/js/Contacts/CardController.js index 53ca919f7..495b0e3fa 100644 --- a/UI/WebServerResources/js/Contacts/CardController.js +++ b/UI/WebServerResources/js/Contacts/CardController.js @@ -21,6 +21,7 @@ vm.categories = {}; vm.userFilterResults = []; vm.transformCategory = transformCategory; + vm.removeAttribute = removeAttribute; vm.addOrg = addOrg; vm.addBirthday = addBirthday; vm.addScreenName = addScreenName; @@ -71,6 +72,10 @@ else return input; } + function removeAttribute(form, attribute, index) { + vm.card.$delete(attribute, index); + form.$setDirty(); + } function addOrg() { var i = vm.card.$addOrg({ value: '' }); focus('org_' + i);