summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohn.j.camilleri <john.j.camilleri@chalmers.se>2013-07-25 07:36:34 +0000
committerjohn.j.camilleri <john.j.camilleri@chalmers.se>2013-07-25 07:36:34 +0000
commit99cfb3463998e670673e8fd49525cca9e5e02edf (patch)
treef5859bcf75fe07cba61a5301394c973f239b5987
parent850e02cb6e620aeb9ee37a8867f47ef6b6432009 (diff)
RGL Browser: now includes Syntax Editor tab!
-rw-r--r--src/www/syntax-editor/editor_menu.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/www/syntax-editor/editor_menu.js b/src/www/syntax-editor/editor_menu.js
index 3ebecb836..13d43233a 100644
--- a/src/www/syntax-editor/editor_menu.js
+++ b/src/www/syntax-editor/editor_menu.js
@@ -11,6 +11,7 @@ function EditorMenu(editor,opts) {
show_to_menu: true,
show_random_button: true,
show_import: true,
+ show_debug: false,
}
// Apply supplied options
@@ -92,7 +93,9 @@ function EditorMenu(editor,opts) {
]);
}
- appendChildren(t.container, [t.ui.debug_toggle]);
+ if (t.options.show_debug) {
+ appendChildren(t.container, [t.ui.debug_toggle]);
+ }
/* --- Client state initialisation -------------------------------------- */
this.editor = editor;