summaryrefslogtreecommitdiff
path: root/ui/index.html
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-05-18 15:53:49 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-05-18 15:53:49 -0700
commite0313455e705bfdaa32c80dfd8844a3bdca9e806 (patch)
treea5982c8dc1dfeca20ed7f6240a8687e011fbbba6 /ui/index.html
parentac629150ac6dca2951df77a35e8fd6fb0298f8c7 (diff)
downloadinfinitytier-e0313455e705bfdaa32c80dfd8844a3bdca9e806.tar.gz
infinitytier-e0313455e705bfdaa32c80dfd8844a3bdca9e806.zip
Hide unneeded menus in MacGap.
Diffstat (limited to 'ui/index.html')
-rw-r--r--ui/index.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/ui/index.html b/ui/index.html
index 857c7ddb..a426dcdf 100644
--- a/ui/index.html
+++ b/ui/index.html
@@ -14,6 +14,7 @@
<body><div style="width: 100%; height: 100%;" id="main"></div></body>
<script src="main.js"></script>
<script>
+/* Windows hacks */
function isIE() {
var myNav = navigator.userAgent.toLowerCase();
return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false;
@@ -35,5 +36,23 @@ if (ieVersion !== false) {
window.onresize = resizeMiddleScrollClasses;
}
}
+
+/* MacGap hacks */
+if (macgap) {
+ if (macgap.menu) {
+ var tmp = macgap.menu.getItem("Help");
+ if (tmp)
+ tmp.remove();
+ tmp = macgap.menu.getItem("Format");
+ if (tmp)
+ tmp.remove();
+ tmp = macgap.menu.getItem("View");
+ if (tmp)
+ tmp.remove();
+ tmp = macgap.menu.getItem("File");
+ if (tmp)
+ tmp.remove();
+ }
+}
</script>
</html>