Explorar o código

HUE-881 [useradmin] Case insensitive search boxes on add/edit group page

Fixed a bug that affected the search functionality
Enrico Berti %!s(int64=13) %!d(string=hai) anos
pai
achega
2a23098
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/static/js/Source/jHue/jquery.selector.js

+ 1 - 1
desktop/core/static/js/Source/jHue/jquery.selector.js

@@ -108,7 +108,7 @@
                 if (q != "") {
                     body.find("li.selectorDivider").hide();
                     body.find("label").each(function () {
-                        if ($(this).text().toLowerCase().indexOf(q) > -1) {
+                        if ($(this).text().toLowerCase().indexOf(q.toLowerCase()) > -1) {
                             $(this).parent().show();
                         }
                         else {