small fix for minimizing search results

This commit is contained in:
Connor Turland 2014-10-01 20:00:03 -04:00
parent eb57e555e9
commit 9169293323

View file

@ -621,9 +621,7 @@ Metamaps.GlobalUI.Search = {
} }
} }
if (!self.optionsInitialized) { $('.limitToMe').unbind().bind("change", function (e) {
$('.limitToMe').bind("change", function (e) {
// set the value of the search equal to itself to retrigger the autocomplete event // set the value of the search equal to itself to retrigger the autocomplete event
self.isOpen = false; self.isOpen = false;
$('.sidebarSearchField').typeahead('setQuery', $('.sidebarSearchField').val()); $('.sidebarSearchField').typeahead('setQuery', $('.sidebarSearchField').val());
@ -633,18 +631,15 @@ Metamaps.GlobalUI.Search = {
}); });
// when the user clicks minimize section, hide the results for that section // when the user clicks minimize section, hide the results for that section
$('.minimizeMapperResults').click(function (e) { $('.minimizeMapperResults').unbind().click(function (e) {
toggleResultSet.call(this, 'mappers'); toggleResultSet.call(this, 'mappers');
}); });
$('.minimizeTopicResults').click(function (e) { $('.minimizeTopicResults').unbind().click(function (e) {
toggleResultSet.call(this, 'topics'); toggleResultSet.call(this, 'topics');
}); });
$('.minimizeMapResults').click(function (e) { $('.minimizeMapResults').unbind().click(function (e) {
toggleResultSet.call(this, 'maps'); toggleResultSet.call(this, 'maps');
}); });
self.optionsInitialized = true;
}
}, },
hideLoader: function () { hideLoader: function () {
$('#searchLoading').hide(); $('#searchLoading').hide();