From 6e0dcc45b474e7927e9e8171c34cf6c4cfd7e217 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Sat, 21 Jun 2014 22:05:43 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D1=8B=D0=B9=20=D0=B2=D0=B0?= =?UTF-8?q?=D1=80=D0=B8=D0=B0=D0=BD=D1=82=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BE=D0=BA=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=BC=D0=B0=D1=80=D1=88=D1=80=D1=83=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ground/views/indexTemplate.php | 17 ++++++----------- public/css/style.css | 13 +++++++------ public/js/main.js | 15 ++++++++------- 3 files changed, 21 insertions(+), 24 deletions(-) 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; }