small fix for minimizing search results
This commit is contained in:
parent
eb57e555e9
commit
9169293323
1 changed files with 18 additions and 23 deletions
|
@ -621,30 +621,25 @@ Metamaps.GlobalUI.Search = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!self.optionsInitialized) {
|
$('.limitToMe').unbind().bind("change", function (e) {
|
||||||
|
// set the value of the search equal to itself to retrigger the autocomplete event
|
||||||
|
self.isOpen = false;
|
||||||
|
$('.sidebarSearchField').typeahead('setQuery', $('.sidebarSearchField').val());
|
||||||
|
setTimeout(function () {
|
||||||
|
self.isOpen = true;
|
||||||
|
}, 2000);
|
||||||
|
});
|
||||||
|
|
||||||
$('.limitToMe').bind("change", function (e) {
|
// when the user clicks minimize section, hide the results for that section
|
||||||
// set the value of the search equal to itself to retrigger the autocomplete event
|
$('.minimizeMapperResults').unbind().click(function (e) {
|
||||||
self.isOpen = false;
|
toggleResultSet.call(this, 'mappers');
|
||||||
$('.sidebarSearchField').typeahead('setQuery', $('.sidebarSearchField').val());
|
});
|
||||||
setTimeout(function () {
|
$('.minimizeTopicResults').unbind().click(function (e) {
|
||||||
self.isOpen = true;
|
toggleResultSet.call(this, 'topics');
|
||||||
}, 2000);
|
});
|
||||||
});
|
$('.minimizeMapResults').unbind().click(function (e) {
|
||||||
|
toggleResultSet.call(this, 'maps');
|
||||||
// when the user clicks minimize section, hide the results for that section
|
});
|
||||||
$('.minimizeMapperResults').click(function (e) {
|
|
||||||
toggleResultSet.call(this, 'mappers');
|
|
||||||
});
|
|
||||||
$('.minimizeTopicResults').click(function (e) {
|
|
||||||
toggleResultSet.call(this, 'topics');
|
|
||||||
});
|
|
||||||
$('.minimizeMapResults').click(function (e) {
|
|
||||||
toggleResultSet.call(this, 'maps');
|
|
||||||
});
|
|
||||||
|
|
||||||
self.optionsInitialized = true;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
hideLoader: function () {
|
hideLoader: function () {
|
||||||
$('#searchLoading').hide();
|
$('#searchLoading').hide();
|
||||||
|
|
Loading…
Add table
Reference in a new issue