Permalink
Browse files

Correcting broken code

  • Loading branch information...
1 parent 3dfc1a7 commit fe82ec4cbc9e9a7e45c26fc903511784a10f8737 @BinaryBrain BinaryBrain committed Apr 23, 2012
Showing with 3 additions and 4 deletions.
  1. +1 −1 view/scripts/detectMobile.js
  2. +1 −2 view/scripts/popover.js
  3. +1 −1 view/scripts/settings.js
@@ -7,7 +7,7 @@ var list = [
"ipod","android","iPad", "ipad"
];
-var uagent = navigator.userAgent.toLowerCase();
+var uagent = navigator.userAgent.toLowerCase();
isMobile = false;
for(var d=0;d<list.length;d+=1){
@@ -9,12 +9,11 @@ function clearOverlays() {
function showHidePopOver() {
if (!popoverIsDisplayed) {
- $("#popover").css({display: "block", top: 46, left: $("body").outerWidth(true)/2-$("#popover").outerWidth(true)/2});
+ $("#popover").css({display: "block", top: 6, left: $("body").outerWidth(true)/2-$("#popover").outerWidth(true)/2});
$("#popover .arrow").css({top: -$("#popover .arrow").innerHeight()+1, left: $("#categories").offset().left+$("#categories").innerWidth()/2-$("#popover").offset().left-$("#popover .arrow").innerWidth()/2});
popoverIsDisplayed = true;
$("#map").removeClass("active");
$("#categories").addClass("active");
-
}
else {
@@ -5,6 +5,6 @@ function showSettings() {
openSettings();
}
-function showSettings() {
+function openSettings() {
alert("Not implemented yet...");
}

0 comments on commit fe82ec4

Please sign in to comment.