summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/js/menu.js20
1 files changed, 11 insertions, 9 deletions
diff --git a/www/js/menu.js b/www/js/menu.js
index c7e7a3a..1e0e5a3 100644
--- a/www/js/menu.js
+++ b/www/js/menu.js
@@ -83,15 +83,6 @@
}, false);
}
- html5ks.elements.container.addEventListener("contextmenu", function (e) {
- switch (html5ks.state.status) {
- case "scene":
- case "context":
- this.context();
- }
- e.preventDefault();
- }.bind(this), false);
-
this.elements.dialog.return.addEventListener("click", function (e) {
html5ks.menu.activeDialog.style.display = "none";
html5ks.menu.activeDialog = null;
@@ -104,6 +95,7 @@
e.stopPropagation();
}, false);
+ // quit
var close = function () {
window.close();
top.open('','_self','');
@@ -120,6 +112,16 @@
}
}, this);
+ // context menu
+ html5ks.elements.container.addEventListener("contextmenu", function (e) {
+ switch (html5ks.state.status) {
+ case "scene":
+ case "context":
+ this.context();
+ }
+ e.preventDefault();
+ }.bind(this), false);
+
document.getElementById("context-return").addEventListener("click", function () {
html5ks.menu.context(false);
}, false);