From 9986e41c5cbb40b6d4a946558fd59f7a6d6a3aff Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sat, 27 Jun 2015 16:35:07 -0400 Subject: [PATCH] Closes #262 Display map div only after getting location --- admin/new_ticket.php | 2 +- index.php | 2 +- js/modsForHesk-javascript.js | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/admin/new_ticket.php b/admin/new_ticket.php index 9be578e3..deff1318 100644 --- a/admin/new_ticket.php +++ b/admin/new_ticket.php @@ -1001,7 +1001,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');

-
+
diff --git a/index.php b/index.php index 4e2e02f8..47d0946d 100644 --- a/index.php +++ b/index.php @@ -969,7 +969,7 @@ if ( ! isset($_SESSION['c_category']) && ! $hesk_settings['select_cat'])

-
+
diff --git a/js/modsForHesk-javascript.js b/js/modsForHesk-javascript.js index 4f66b7d7..ac60da63 100644 --- a/js/modsForHesk-javascript.js +++ b/js/modsForHesk-javascript.js @@ -113,9 +113,9 @@ function requestUserLocation(yourLocationText, unableToDetermineText) { var longitude = position.coords.longitude; setLatLon(latitude, longitude); $('#console').hide(); + $('#map').show(); initializeMapForCustomer(latitude, longitude, yourLocationText); }, function(error) { - $('#map').hide(); $('#console').text(unableToDetermineText).show(); switch(error.code) { case error.PERMISSION_DENIED: @@ -133,7 +133,6 @@ function requestUserLocation(yourLocationText, unableToDetermineText) { } }); } else { - $('#map').hide(); $('#console').text(unableToDetermineText).show(); setLatLon('E-5','E-5'); }