diff --git a/karte-mahe-2017.css b/karte-mahe-2017.css
index 106bfaa..b11f0cc 100644
--- a/karte-mahe-2017.css
+++ b/karte-mahe-2017.css
@@ -421,13 +421,18 @@
}
#popupShare li.ui-block-a {
}
-#popupShare li.ui-tabs-active {
- border-bottom: 4px solid #38aadd;
- border-radius: 20%;
+#popupShare ul.ui-tabs-nav .ui-btn {
+ background: #fff;
+ border-color: #ddd;
+}
+#popupShare li.ui-tabs-active .ui-btn.ui-btn-active {
+ background: #f1f8fc;
+ color: #38aadd;
+ padding-bottom: .9em;
+ border-bottom: 2px solid #38aadd;
}
#popupShare iframe {
border: 1px solid #555 !important;
- border-radius: 1.2em;
}
#popupShare .ui-input-text {
background: #fff;
diff --git a/karte-mahe-2017.html b/karte-mahe-2017.html
index 722c290..8e6e329 100644
--- a/karte-mahe-2017.html
+++ b/karte-mahe-2017.html
@@ -50,10 +50,10 @@
-
-
-
-
+
+
+
+
@@ -122,7 +122,7 @@
Wie kaputt ist Ihre Schule?
@@ -158,7 +158,7 @@
Wie kaputt ist Ihre Schule?
-
+
diff --git a/karte-mahe-2017.js b/karte-mahe-2017.js
index f7a254c..f140d25 100644
--- a/karte-mahe-2017.js
+++ b/karte-mahe-2017.js
@@ -625,12 +625,14 @@ function createMarker(data) {
function selectSuggestion(selection) {
'use strict';
- $.each(layerGroup._layers, function (key, val) {
- if (val.options.data.Gebaeudenummer === selection) {
- map.panTo(new L.LatLng(val.options.data.lat, val.options.data.lng));
- updateMapSelectItem(val.options.data);
- }
- });
+ if (null !== layerGroup._layers) {
+ $.each(layerGroup._layers, function (key, val) {
+ if (val.options.data.Gebaeudenummer === selection) {
+ map.panTo(new L.LatLng(val.options.data.lat, val.options.data.lng));
+ updateMapSelectItem(val.options.data);
+ }
+ });
+ }
}
//-----------------------------------------------------------------------------
@@ -703,7 +705,7 @@ function initSearchBox(data) {
}
// -----------------------------------------------------------------------------
-
+/*
function printerLabelClick() {
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && (location.hostname === this.hostname)) {
var hash = this.hash,
@@ -729,7 +731,7 @@ function printerLabelClick() {
}
}
}
-
+*/
// -----------------------------------------------------------------------------
function initSocialMedia() {
@@ -833,7 +835,7 @@ $(document).on("pageshow", "#pageMap", function () {
$('#inputEmbedURI').val(html);
if (-1 === $('#embedMap iframe')[0].outerHTML.indexOf('width="' + x + '"')) {
- $('#embedMap iframe')[0].outerHTML = html;
+ $('#embedMap iframe')[0].outerHTML = html.replace('.html"', '.html?foo=' + (new Date().getTime()) + '"');
$('#embedMap input').focus().select();
}
}
@@ -871,7 +873,7 @@ $(document).on("pageshow", "#pageMap", function () {
});
$('#selectEmbedSize').val('400x300').selectmenu('refresh');
- $('#selectEmbedSize').on('click', function (e) {
+ $('#selectEmbedSize').on('change', function (e) {
updateEmbedURI();
$('#popupShare').popup('reposition', 'positionTo: window');
});
@@ -882,7 +884,7 @@ $(document).on("pageshow", "#pageMap", function () {
$(function () {
'use strict';
- $('a[href*="#"]:not([href="#"])').click(printerLabelClick);
+// $('a[href*="#"]:not([href="#"])').click(printerLabelClick);
var isIFrame = true;
try {