fix #99: option to search in title

This commit is contained in:
Antelle 2016-02-25 22:50:31 +03:00
parent f129b827f9
commit 9595cee273
4 changed files with 5 additions and 2 deletions

View File

@ -208,7 +208,7 @@ var EntryModel = Backbone.Model.extend({
if (adv.pass && matchField(entry, 'Password', compare, search)) {
return true;
}
if (adv.other && matchField(entry, 'Title', compare, search)) {
if (adv.title && matchField(entry, 'Title', compare, search)) {
return true;
}
var matches = false;

View File

@ -60,7 +60,7 @@ var ListSearchView = Backbone.View.extend({
url: true, protect: false,
notes: true, pass: false,
cs: false, regex: false,
history: false
history: false, title: true
};
KeyHandler.onKey(Keys.DOM_VK_F, this.findKeyPress, this, KeyHandler.SHORTCUT_ACTION);
KeyHandler.onKey(Keys.DOM_VK_N, this.newKeyPress, this, KeyHandler.SHORTCUT_OPT);

View File

@ -27,6 +27,8 @@
{{#if adv.notes}}checked{{/if}}><label for="list__search-adv-check-notes">{{Res 'notes'}}</label></div>
<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-pass" data-id="pass"
{{#if adv.pass}}checked{{/if}}><label for="list__search-adv-check-pass">{{Res 'password'}}</label></div>
<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-title" data-id="title"
{{#if adv.title}}checked{{/if}}><label for="list__search-adv-check-title">{{Res 'title'}}</label></div>
<div class="list__search-adv-text">{{res 'searchOptions'}}:</div>
<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-cs" data-id="cs"
{{#if adv.cs}}checked{{/if}}><label for="list__search-adv-check-cs">{{res 'searchCase'}}</label></div>

View File

@ -9,6 +9,7 @@ Storage providers, usability improvements
`+` shortcut to copy username
`+` password generation presets
`+` regenerate password button
`+` option to search in title
`-` fix #88: capslock indicator
##### v1.0.3 (2016-02-23)