diff --git a/ground/views/indexTemplate.php b/ground/views/indexTemplate.php index 8825d43..fab6f8a 100644 --- a/ground/views/indexTemplate.php +++ b/ground/views/indexTemplate.php @@ -7,7 +7,7 @@
-
+
@@ -38,22 +38,17 @@

Карты

Layers -
- Выйти -
- -
-

Мой маршрут

-
+
+

Маршрут

-
-
-
+
'; marker.options.description = description; - marker.bindPopup(marker.options.description, {maxWidth: 500}).openPopup(); + marker.bindPopup(marker.options.description, {maxWidth: 500, maxHeight: 300}).openPopup(); } }); } @@ -558,7 +558,7 @@ function addToRoute(id) console.log(points[id]); $('#wayPoints').append('
× ' + points[id].options.title + '
'); myMap._popup._close(); - $('#routeWindow').show(200); + openBox('Route', true); return true; } @@ -605,17 +605,18 @@ function editSetNewCoords() setStatus(statusReHunting) } -function openBox(type) +function openBox(type, keepOpen) { newTab = $('#box'+type).css('display') == 'none'; + keepOpen = keepOpen == true; - if (!newTab) + if (!newTab && !keepOpen) { return closeBox(); } $('div','#control').removeClass('active'); - $('div','#box').css('display', 'none'); + $('#box').children('div').css('display', 'none'); $('.boxButton'+type).addClass('active'); $('#box'+type).css('display', 'block'); @@ -626,7 +627,7 @@ function closeBox() { $('body').removeClass('openBox'); $('div','#control').removeClass('active'); - $('div','#box').css('display', 'none'); + $('#box').children('div').css('display', 'none'); return true; }