Skip to content
Snippets Groups Projects
Commit 9481cfeb authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Adding event.stopPropagation to geo location...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2863 44740490-163a-0410-bde0-09ae8108e29a
parent 3ef7e96f
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment