diff --git a/css/contacts.css b/css/contacts.css index adc98436..fc605d97 100644 --- a/css/contacts.css +++ b/css/contacts.css @@ -187,6 +187,8 @@ dl.form { display: inline-block; width: auto; margin: 0; padding: 0; cursor: nor /*.propertylist li > a { display: block; }}*/ .propertylist li > input[type="checkbox"],input[type="radio"] { display: inline-block; } .propertylist input.value:not([type="checkbox"]) { width: 16em; display: inline-block; font-weight: bold; } +.propertylist input.value:not([type="checkbox"]).new { border: 3px solid #1d2d44;} +.propertylist input.value:not([type="checkbox"]).error { border: 3px solid #1d2d44;} .propertylist li > select { float: left; max-width: 8em; } .select_wrapper { float: left; overflow: hidden; color: #bbb; font-size: 0.8em; } .select_wrapper select { float: left; overflow: hidden; text-overflow: ellipsis; color: #bbb; width: 8em; } diff --git a/js/contacts.js b/js/contacts.js index 6b62241a..65d7d87c 100644 --- a/js/contacts.js +++ b/js/contacts.js @@ -46,7 +46,7 @@ OC.Contacts = OC.Contacts || {}; case 'TITLE': case 'ORG': case 'BDAY': - this.$fullelem.find('[data-element="' + name.toLowerCase() + '"]').show(); + this.$fullelem.find('[data-element="' + name.toLowerCase() + '"]').addClass('new').show(); $option.prop('disabled', true); break; case 'TEL': @@ -56,6 +56,7 @@ OC.Contacts = OC.Contacts || {}; var $list = this.$fullelem.find('ul.' + name.toLowerCase()); $list.show(); $list.append($elem); + $elem.find('input.value').addClass('new'); break; case 'ADR': $elem = this.renderAddressProperty(); @@ -63,12 +64,14 @@ OC.Contacts = OC.Contacts || {}; $list.show(); $list.append($elem); $elem.find('.adr.display').trigger('click'); + $elem.find('input.value').addClass('new'); break; case 'IMPP': $elem = this.renderIMProperty(); var $list = this.$fullelem.find('ul.' + name.toLowerCase()); $list.show(); $list.append($elem); + $elem.find('input.value').addClass('new'); break; } } @@ -207,6 +210,7 @@ OC.Contacts = OC.Contacts || {}; } } } else { + $(obj).removeClass('new'); self.data[element].push({ name: element, value: self.valueFor(obj),