Bugfix. Make sure to hide the filter type as well.

This commit is contained in:
JC Brand 2014-08-11 22:26:10 +02:00
parent 3bbcf237ee
commit c4a8101070
6 changed files with 8 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3491,6 +3491,7 @@
showHideFilter: function () {
var $filter = this.$('.roster-filter');
var $type = this.$('.filter-type');
var visible = $filter.is(':visible');
if (visible && $filter.val().length > 0) {
// Don't hide if user is currently filtering.
@ -3499,9 +3500,11 @@
if (this.$('.roster-contacts').hasScrollBar()) {
if (!visible) {
$filter.show();
$type.show();
}
} else {
$filter.hide();
$type.hide();
}
return this;
},