fix cannot set readonly property highlight
This commit is contained in:
parent
03ab04050d
commit
53de063bfc
1 changed files with 2 additions and 2 deletions
|
@ -459,7 +459,7 @@ Metamaps.GlobalUI.Search = {
|
||||||
$('.sidebarSearch .twitter-typeahead, .sidebarSearch .tt-hint, .sidebarSearchField').animate({
|
$('.sidebarSearch .twitter-typeahead, .sidebarSearch .tt-hint, .sidebarSearchField').animate({
|
||||||
width: '0'
|
width: '0'
|
||||||
}, 300, function () {
|
}, 300, function () {
|
||||||
$('.sidebarSearchField').typeahead('setQuery', '');
|
$('.sidebarSearchField').typeahead('val', '');
|
||||||
$('.sidebarSearchField').blur();
|
$('.sidebarSearchField').blur();
|
||||||
self.changing = false;
|
self.changing = false;
|
||||||
self.isOpen = false;
|
self.isOpen = false;
|
||||||
|
@ -635,7 +635,7 @@ Metamaps.GlobalUI.Search = {
|
||||||
$('.limitToMe').unbind().bind("change", function (e) {
|
$('.limitToMe').unbind().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('val', $('.sidebarSearchField').val());
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
self.isOpen = true;
|
self.isOpen = true;
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|
Loading…
Reference in a new issue