fix details

This commit is contained in:
Antelle 2016-03-05 16:59:36 +03:00
parent 7b6d07889c
commit 910f6f80f0
2 changed files with 4 additions and 3 deletions

View File

@ -267,11 +267,12 @@ var EntryModel = Backbone.Model.extend({
},
setField: function(field, val) {
this._entryModified();
var hasValue = val && (typeof val === 'string' || val.isProtected && val.byteLength);
if (hasValue || this.builtInFields.indexOf(field) >= 0) {
this._entryModified();
this.entry.fields[field] = val;
} else {
} else if (this.entry.fields.hasOwnProperty(field)) {
this._entryModified();
delete this.entry.fields[field];
}
this._fillByEntry();

View File

@ -257,7 +257,7 @@
@include position(absolute, 0 0 null null);
@include fa-icon();
cursor: pointer;
padding: $base-padding;
padding: .3em $base-padding-h;
}
}
&-btn-gen:before { content: $fa-var-bolt; }