mirror of https://github.com/keeweb/keeweb.git
Merge 6008897d6a
into cb17bbe87d
This commit is contained in:
commit
c76182d511
|
@ -739,7 +739,7 @@ class DetailsView extends View {
|
||||||
}
|
}
|
||||||
const input = $('<input/>')
|
const input = $('<input/>')
|
||||||
.addClass('details__header-title-input')
|
.addClass('details__header-title-input')
|
||||||
.attr({ autocomplete: 'off', spellcheck: 'false', placeholder: 'Title' })
|
.attr({ autocomplete: 'off', spellcheck: 'false', placeholder: Locale.title })
|
||||||
.val(this.model.title);
|
.val(this.model.title);
|
||||||
input.bind({
|
input.bind({
|
||||||
blur: this.titleInputBlur.bind(this),
|
blur: this.titleInputBlur.bind(this),
|
||||||
|
@ -792,7 +792,9 @@ class DetailsView extends View {
|
||||||
this.model.setField('Title', title);
|
this.model.setField('Title', title);
|
||||||
this.entryUpdated(true);
|
this.entryUpdated(true);
|
||||||
}
|
}
|
||||||
const newTitle = $('<h1 class="details__header-title"></h1>').text(title || '(no title)');
|
const newTitle = $('<h1 class="details__header-title"></h1>').text(
|
||||||
|
title || `(${Locale.noTitle})`
|
||||||
|
);
|
||||||
this.$el.find('.details__header-title-input').replaceWith(newTitle);
|
this.$el.find('.details__header-title-input').replaceWith(newTitle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</i>
|
</i>
|
||||||
<h1 class="details__header-title">{{#if title}}{{title}}{{else}}(no title){{/if}}</h1>
|
<h1 class="details__header-title">{{#if title}}{{title}}{{else}}({{res 'noTitle'}}){{/if}}</h1>
|
||||||
{{#if customIcon}}
|
{{#if customIcon}}
|
||||||
<div class="details__header-icon details__header-icon--icon"
|
<div class="details__header-icon details__header-icon--icon"
|
||||||
{{#if canEditIcon}}title="{{res 'detSetIcon'}}"{{/if}}
|
{{#if canEditIcon}}title="{{res 'detSetIcon'}}"{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue