From 9595cee273164ea8f92f5c22d9ed6ad87568da78 Mon Sep 17 00:00:00 2001 From: Antelle Date: Thu, 25 Feb 2016 22:50:31 +0300 Subject: [PATCH] fix #99: option to search in title --- app/scripts/models/entry-model.js | 2 +- app/scripts/views/list-search-view.js | 2 +- app/templates/list-search.hbs | 2 ++ release-notes.md | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/scripts/models/entry-model.js b/app/scripts/models/entry-model.js index 3941ff1b..380a1250 100644 --- a/app/scripts/models/entry-model.js +++ b/app/scripts/models/entry-model.js @@ -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; diff --git a/app/scripts/views/list-search-view.js b/app/scripts/views/list-search-view.js index 9809c31f..291c8065 100644 --- a/app/scripts/views/list-search-view.js +++ b/app/scripts/views/list-search-view.js @@ -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); diff --git a/app/templates/list-search.hbs b/app/templates/list-search.hbs index 6dc65c53..44d12e5e 100644 --- a/app/templates/list-search.hbs +++ b/app/templates/list-search.hbs @@ -27,6 +27,8 @@ {{#if adv.notes}}checked{{/if}}>
+
{{res 'searchOptions'}}:
diff --git a/release-notes.md b/release-notes.md index 222f9ee2..9a0655a4 100644 --- a/release-notes.md +++ b/release-notes.md @@ -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)