1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2025-12-19 04:47:02 +01:00

Basic implementation of search feature

This commit is contained in:
Giulio Cesare Solaroli
2014-09-22 16:53:44 +02:00
parent f42c469663
commit 093d5e7965
4 changed files with 33 additions and 12 deletions

View File

@@ -59,7 +59,7 @@ Clipperz.PM.UI.MainController = function() {
'doLogin', 'registerNewUser', 'showRegistrationForm', 'goBack',
'toggleSelectionPanel', 'toggleSettingsPanel',
'matchMediaQuery', 'unmatchMediaQuery',
'selectAllCards', 'selectRecentCards', 'tagSelected', 'selectUntaggedCards',
'selectAllCards', 'selectRecentCards', 'search', 'tagSelected', 'selectUntaggedCards',
'refreshCardEditDetail',
// 'refreshCardEditToolbar',
'saveCardEdits', 'cancelCardEdits',
@@ -1146,6 +1146,17 @@ console.log("SET USER", aUser);
return this.refreshSelectedCards();
},
search_handler: function (aValue) {
//console.log("SEARCH", aValue);
if (aValue == "") {
this.setFilter('ALL');
} else {
this.setFilter('SEARCH', aValue);
}
return this.refreshSelectedCards();
},
tagSelected_handler: function (aTag) {
this.setFilter('TAG', aTag);
return this.refreshSelectedCards();