diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-05 12:16:22 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-10 08:23:26 +0100 |
commit | cf0a12f999f6b6316946b8ebfd7ee8f0030f7084 (patch) | |
tree | 01032fc803cea7e6ee80a70e2a8251296d615e58 /settings | |
parent | 5fcc3401e250d381a07883f6533a8f846a792c7e (diff) | |
download | nextcloud-server-cf0a12f999f6b6316946b8ebfd7ee8f0030f7084.tar.gz nextcloud-server-cf0a12f999f6b6316946b8ebfd7ee8f0030f7084.zip |
fix placeholder fake in IE8 & 9 that brokes group listing in user management - fixes #12525
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users/filter.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/settings/js/users/filter.js b/settings/js/users/filter.js index c5944e9b4b1..72f2cfc6d24 100644 --- a/settings/js/users/filter.js +++ b/settings/js/users/filter.js @@ -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; }; /** |