summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-11-04 16:53:31 -0500
committerJules Laplace <jules@okfoc.us>2014-11-04 16:53:52 -0500
commitf4da7634e36cfca43e5bda916bfe1ce7b76950b8 (patch)
tree261c3df3d76bfcb5f19c85fad25bd8b03e05ef4a
parent3d22e7ad8320ae120586ec1ad26e11016598c821 (diff)
mobile view links should NOT take you to the editing view
-rw-r--r--public/assets/javascripts/ui/_router.js9
-rw-r--r--views/reader.ejs6
2 files changed, 11 insertions, 4 deletions
diff --git a/public/assets/javascripts/ui/_router.js b/public/assets/javascripts/ui/_router.js
index d5a8e7f..7337357 100644
--- a/public/assets/javascripts/ui/_router.js
+++ b/public/assets/javascripts/ui/_router.js
@@ -73,12 +73,13 @@ var SiteRouter = Router.extend({
this.route()
- /*
if (is_mobile) {
- $(".topLinks").hide()
- $(".share").hide()
+ // $(".topLinks").hide()
+ // $(".share").hide()
+ $('.projectItem').each(function(){
+ this.href = this.href.replace(/\/edit$/, "")
+ })
}
- */
$("body").removeClass("loading")
},
diff --git a/views/reader.ejs b/views/reader.ejs
index b110ffd..e86bab1 100644
--- a/views/reader.ejs
+++ b/views/reader.ejs
@@ -16,6 +16,12 @@
[[ include controls/reader/about-room ]]
[[ include controls/reader/media-player ]]
</div>
+
+<!--
+ <div id="minimap" class="vvbox" data-intro="Mini-map shows your position and orientation in a room. Navigate with WASD keys or drag here." data-position="top">
+ <span class="el"></span>
+ </div>
+ -->
</div>
[[ } ]]