1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 21:08:34 +01:00

enable caseless searching in the "Files" toolbar

This commit is contained in:
Tony Li 2015-06-19 20:20:18 -07:00
parent e5d9c67717
commit 637222f8b7

View File

@ -318,12 +318,12 @@ if (typeof(PhpDebugBar) == 'undefined') {
this.bindAttr(['exclude', 'search'], function() {
var data = this.get('data'),
exclude = this.get('exclude'),
search = this.get('search'),
exclude = this.get('exclude'),
search = this.get('search').toLowerCase(),
fdata = [];
for (var i = 0; i < data.length; i++) {
if ((!data[i].label || $.inArray(data[i].label, exclude) === -1) && (!search || data[i].message.indexOf(search) > -1)) {
if ((!data[i].label || $.inArray(data[i].label, exclude) === -1) && (!search || data[i].message.toLowerCase().indexOf(search) > -1)) {
fdata.push(data[i]);
}
}