Fixed issue #30816
This commit is contained in:
@@ -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 () {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user