Hide barcode in select dropdown but search in it

This commit is contained in:
Bernd Bestel
2017-04-18 23:04:26 +02:00
parent dc530c80aa
commit 83a7534a74
7 changed files with 54 additions and 7 deletions

View File

@@ -75,3 +75,8 @@ Grocy.EmptyElementWhenMatches = function(selector, text)
$(selector).text('');
}
};
String.prototype.contains = function(search)
{
return this.toLowerCase().indexOf(search.toLowerCase()) !== -1;
};