make check for Firefox OS even nicer
[lantea.git] / js / ui.js
index 6566a86254e010bdd15ba67fab587d8c7dab346e..9c97cd600891127443be8b07c66d8b686113cd42 100644 (file)
--- a/js/ui.js
+++ b/js/ui.js
@@ -31,6 +31,11 @@ window.onload = function() {
     areas[i].addEventListener("touchleave", uiEvHandler, false);
   }
 
+  if (navigator.platform.length == "") {
+    // For Firefox OS, don't display the "save" button.
+    // Do this by setting the debugHide class for testing in debug mode.
+    document.getElementById("saveTrackButton").classList.add("debugHide");
+  }
 
   initDB();
   initMap();