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

Hide location bar properly if turned off in configuration...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2928 44740490-163a-0410-bde0-09ae8108e29a
parent b52eb923
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
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