summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghu Nayyar <me@iraghu.com>2014-12-06 11:54:31 +0530
committerRaghu Nayyar <me@iraghu.com>2014-12-06 11:54:31 +0530
commitbfb519cced9713416fa4af753aa39ee42b468268 (patch)
tree2cc833ba1b703584e7152536e2edd4b59f7de9ce
parente47f4758f2f178c4c75bb1641674d7a6bf960f61 (diff)
parent23e09be65f4ff900115e42a1230b3f5df7182ca5 (diff)
downloadnextcloud-server-bfb519cced9713416fa4af753aa39ee42b468268.tar.gz
nextcloud-server-bfb519cced9713416fa4af753aa39ee42b468268.zip
Merge pull request #12636 from owncloud/fix-ie9-placeholder
fix placeholder fake in IE8 & 9 that brokes group listing in user manage...
-rw-r--r--settings/js/users/filter.js9
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;
};
/**