]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix placeholder fake in IE8 & 9 that brokes group listing in user management - fixes...
authorMorris Jobke <hey@morrisjobke.de>
Fri, 5 Dec 2014 11:16:22 +0000 (12:16 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 5 Dec 2014 11:16:22 +0000 (12:16 +0100)
settings/js/users/filter.js

index c5944e9b4b108d2039d6914d0bdc223545bc2db4..72f2cfc6d24d02ce1f97ab3c5b2e12a99c5380d8 100644 (file)
@@ -70,7 +70,14 @@ UserManagementFilter.prototype.run = _.debounce(function() {
  * @returns string
  */
 UserManagementFilter.prototype.getPattern = function() {
-       return this.filterInput.val();
+       var input = this.filterInput.val(),
+               html = $('html'),
+               isIE8or9 = html.hasClass('lte9');
+       // FIXME - TODO - once support for IE8 and IE9 is dropped
+       if(isIE8or9 && input == this.filterInput.attr('placeholder')) {
+               input = '';
+       }
+       return input;
 };
 
 /**