Skip to content

Commit

Permalink
Special handling of the case where both platforms are mandatory. Doub…
Browse files Browse the repository at this point in the history
…le super mega closes #15.
  • Loading branch information
floere committed Dec 9, 2013
1 parent 41f9f57 commit 8919ba0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion source/javascripts/search.config.js
Expand Up @@ -330,11 +330,26 @@ $(window).ready(function() {
versions: 'on version',
dependencies: 'using',
name: 'named',
platform: 'only on',
// platform: 'on', See below.
summary: 'with summary',
tags: 'tagged as'
}
},
explanationDelimiter: {
en: 'and'
},
explanationTokenCallback: function(category, tokens) {
// Special case to clarify when both platforms are AND-ed.
//
if (category == 'platform' & tokens.length == 2) {
return '<strong>on</strong> both ' + tokens.join(' & ');
}
}
// explanationTokenDelimiter: {
// en: {
// platform: ' & '
// }
// }
});

// Reset the search if empty.
Expand Down

0 comments on commit 8919ba0

Please sign in to comment.