Skip to content

Commit

Permalink
Remember flagged state when searching on moderation pages; Fixes #181
Browse files Browse the repository at this point in the history
  • Loading branch information
jerone committed Dec 7, 2014
1 parent f1c69fe commit 82ef58c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/modelQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ var applyModelListQueryFlaggedFilter = function (aModelListQuery, aOptions, aFla
if (aFlaggedQuery) {
if (aFlaggedQuery == 'true') {
aOptions.isFlagged = true;
aOptions.searchBarFormHiddenVariables.push({ name: 'flagged', value: 'true' });
aModelListQuery.and({ flags: { $gt: 0 } });
} else if (aFlaggedQuery == false) {
// aModelListQuery.and({$or: [
Expand Down

0 comments on commit 82ef58c

Please sign in to comment.