From 9323808c087c2a6cd84658897021129abacdf849 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Tue, 27 Sep 2011 10:44:34 +0000
Subject: [PATCH] Hide location bar properly if turned off in configuration...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2928 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/discojuice/www/discojuice/discojuice.ui.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/discojuice/www/discojuice/discojuice.ui.js b/modules/discojuice/www/discojuice/discojuice.ui.js
index 85ef385dc..c3a027b6c 100644
--- a/modules/discojuice/www/discojuice/discojuice.ui.js
+++ b/modules/discojuice/www/discojuice/discojuice.ui.js
@@ -341,8 +341,9 @@ DiscoJuice.UI = {
 		if (this.parent.Utils.options.get('location', false) && navigator.geolocation) {
 			var that = this;
 			$("a#locateme").click(function(event) {
-				that.parent.Utils.log('Locate me. Detected click event.');
 				var imgpath = that.parent.Utils.options.get('discoPath', '') + 'images/';
+
+				that.parent.Utils.log('Locate me. Detected click event.');
 				event.preventDefault();
  				event.stopPropagation();
 				$("div.locatemebefore").hide();
@@ -350,7 +351,7 @@ DiscoJuice.UI = {
 				that.control.locateMe();
 			});
 		} else {
-			$("dd#locatemediv").hide();
+			$("div#locatemediv").hide();
 		}	
 
 	
-- 
GitLab