FIX - показ карточек на карте и скрытие кнопок управления

This commit is contained in:
Krivchikov Dmitry 2016-01-06 14:43:12 +03:00
parent 15b6f39c5e
commit fd58b965d1
1 changed files with 6 additions and 6 deletions

View File

@ -263,12 +263,6 @@ function showInfo(id, mapClick,doNotPushToHistory)
} else { } else {
drawInfoPopup(id, !mapClick, doNotPushToHistory); drawInfoPopup(id, !mapClick, doNotPushToHistory);
} }
setTimeout(function(){
if (myMap._popup && $(window).width() < 665) {
$('#control').hide(200);
}
}, 200);
} }
function drawInfoPopup(id, showPopup, doNotPushToHistory) { function drawInfoPopup(id, showPopup, doNotPushToHistory) {
@ -333,6 +327,12 @@ function drawInfoPopup(id, showPopup, doNotPushToHistory) {
document.title = marker.options.title + ' wikipoints.ru'; document.title = marker.options.title + ' wikipoints.ru';
}); });
setTimeout(function(){
if (myMap._popup && $(window).width() < 665) {
$('#control').hide(200);
}
}, 200);
return true; return true;
} }