From 4ae5d2110ec8a5fd463bdd02db0106f93c80908a Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Tue, 5 Aug 2014 00:26:00 +0400 Subject: [PATCH] =?UTF-8?q?FIX=20=D0=BB=D0=BE=D0=BA=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D1=8B=D0=B5=20=D0=BA=D0=B0=D1=80=D1=82=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B8=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/map.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/js/map.js b/public/js/map.js index c9ee6f1..bbec4b2 100644 --- a/public/js/map.js +++ b/public/js/map.js @@ -175,9 +175,14 @@ function showInfo(id) url: "/json/point/id/" + id, success: function(data) { pointsSources[id] = data; + if (typeof(data.images) == 'object') + ph = ''; + else + ph = ''; + description = '
' + '

' + data.name + '

' + - '' + + ph + '
';