Skip to content

Commit

Permalink
Force a couple of mustache options to always happen
Browse files Browse the repository at this point in the history
* Very odd boog... dev had `Search Flagged Libraries` and pro had `Search Libraries` until I blanked out dev lib flags... then they matched. Force the text in along with the flag just to be sure. DOM duplication now appears to be related only to the logic issue at OpenUserJS#492

Post fix for OpenUserJS#491
  • Loading branch information
Martii committed Dec 9, 2014
1 parent 09b509c commit d37ad3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/modelQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ var applyModelListQueryFlaggedFilter = function (aModelListQuery, aOptions, aFla
// Mod
if (aFlaggedQuery) {
if (aFlaggedQuery === 'true') {
aOptions.isFlagged = true;
aOptions.searchBarPlaceholder = aOptions.searchBarPlaceholder.replace(/^Search /, 'Search Flagged ');
if (!_.findWhere(aOptions.searchBarFormHiddenVariables, { name: 'flagged' })) {
aOptions.isFlagged = true;
aOptions.searchBarFormHiddenVariables.push({ name: 'flagged', value: 'true' });
aOptions.searchBarPlaceholder = aOptions.searchBarPlaceholder.replace(/^Search /, 'Search Flagged ');
}
aModelListQuery.and({ flags: { $gt: 0 } });
}
Expand Down

0 comments on commit d37ad3f

Please sign in to comment.