fix placeholder fake in IE8 & 9 that brokes group listing in user management - fixes #12525

This commit is contained in:
Morris Jobke 2014-12-05 12:16:22 +01:00
parent 5aad902507
commit 23e09be65f

View 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;
};
/**