1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-25 07:37:46 +02:00

fix double fields

This commit is contained in:
Antelle 2016-03-05 11:40:07 +03:00
parent ebf8baac94
commit 336704696e

View File

@ -207,7 +207,7 @@ var DetailsView = Backbone.View.extend({
var moreOptions = [];
if (hideEmptyFields) {
this.fieldViews.forEach(function(fieldView) {
if (!fieldView.model.value()) {
if (fieldView.isHidden()) {
moreOptions.push({value: 'add:' + fieldView.model.name, icon: 'pencil',
text: Locale.detMenuAddField.replace('{}', fieldView.model.title)});
}