mirror of https://github.com/keeweb/keeweb.git
fix details
This commit is contained in:
parent
7b6d07889c
commit
910f6f80f0
|
@ -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();
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue