This commit is contained in:
Floris Robbemont
2012-05-17 15:31:36 -02:00
parent f0de2d3141
commit 290f01ea3e
2 changed files with 2 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
dataType: 'json',
matchCase: true,
matchContains: false,
selectFirst: false, // FR: This enabled the search popup to show, otherwise it selects the first item
extraParams: {
//return the current app, if it's not media, then it's Content as this is the only searches that are supported.
app: function () {

View File

@@ -438,6 +438,7 @@
var length = 0;
function matchSubset(s, sub) {
s = s.toString(); // FR: This forces the value to be a string, otherwise the indexOf() method fails on anything other but a string
if (!options.matchCase)
s = s.toLowerCase();
var i = s.indexOf(sub);