From d37ad3f1664274d26d8b9b6c04e096bbc1cbbf0e Mon Sep 17 00:00:00 2001 From: Martii Date: Mon, 8 Dec 2014 20:15:55 -0700 Subject: [PATCH] Force a couple of mustache options to always happen * 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 #492 Post fix for #491 --- libs/modelQuery.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/modelQuery.js b/libs/modelQuery.js index 8a428cc49..7d3b68ece 100644 --- a/libs/modelQuery.js +++ b/libs/modelQuery.js @@ -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 } }); }