From 9481cfeb9d30dd8c3626a12afe2059598a5310af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Mon, 27 Jun 2011 10:27:00 +0000
Subject: [PATCH] Adding event.stopPropagation to geo location...

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

diff --git a/modules/discojuice/www/discojuice/discojuice.ui.js b/modules/discojuice/www/discojuice/discojuice.ui.js
index c19076d8b..81193d392 100644
--- a/modules/discojuice/www/discojuice/discojuice.ui.js
+++ b/modules/discojuice/www/discojuice/discojuice.ui.js
@@ -274,9 +274,11 @@ DiscoJuice.UI = {
 
 		if (this.parent.Utils.options.get('location', false) && navigator.geolocation) {
 			var that = this;
-			$("#locateme").click(function(event) {
+			$("a#locateme").click(function(event) {
+				that.parent.Utils.log('Locate me. Detected click event.');
 				var imgpath = that.parent.Utils.options.get('discoPath', '') + 'images/';
 				event.preventDefault();
+ 				event.stopPropagation();
 				$("div.locatemebefore").hide();
 				$("div.locatemeafter").html('<div class="loadingData" ><img src="' + imgpath + 'spinning.gif" /> Getting your location...</div>');
 				that.control.locateMe();
-- 
GitLab