diff --git a/public/css/style.css b/public/css/style.css index 68bf02e..747c861 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -44,7 +44,7 @@ div.leaflet-popup-content button:hover span.label {display: inline;} #wayPoints {margin-bottom: 10px;} #wayPoints .wayPoint {cursor: pointer; border: solid 1px #999; padding: 2px 5px; margin-bottom: 3px; background-color: #fff;} -#wayPoints .wayPoint span {font-weight: bold; color: red;} +#wayPoints .wayPoint span.del {font-weight: bold; color: red;} #routes {margin-bottom: 10px; height: 200px;} #routes .route {cursor: pointer; border: solid 1px #999; padding: 2px 5px; margin-bottom: 3px;} diff --git a/public/js/map.js b/public/js/map.js index 44862fd..9d83920 100644 --- a/public/js/map.js +++ b/public/js/map.js @@ -203,14 +203,8 @@ function showInfo(id) description += data.descriptionHtml; description += '
'; description += '
'; - -// if (data.source.length > 11) -// { -// description += ' Подробнее'; -// } description += ' Подробнее'; description += ''; -// description += ''; description += ''; description += ''; @@ -242,6 +236,7 @@ function showInfo(id) history.pushState({pointId: id}, document.title, "/?point=" + id); document.title = points[id].options.title; + marker.openPopup(); } } diff --git a/public/js/route.js b/public/js/route.js index f7d4bb3..3268436 100644 --- a/public/js/route.js +++ b/public/js/route.js @@ -151,7 +151,7 @@ function deleteRoute(id) */ function addToRoute(id, build) { - $('#wayPoints').append('
× ' + points[id].options.title + '
'); + $('#wayPoints').append('
× '+ points[id].options.title + '
'); closePopup(); openBox('Route', true);