mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Contacts: Draw border around new, editable fields. Fixes #316
This commit is contained in:
parent
dfa68f74a5
commit
6dd8869ed3
@ -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; }
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user