From 8bd58a02970d3650b5b3efb6298f40529737c2d8 Mon Sep 17 00:00:00 2001 From: hallgren Date: Wed, 21 Nov 2012 15:07:59 +0000 Subject: minibar+syntax editor integration, work in progress --- src/www/syntax-editor/editor.css | 4 ++-- src/www/syntax-editor/editor.html | 4 ++-- src/www/syntax-editor/editor_menu.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/www/syntax-editor') diff --git a/src/www/syntax-editor/editor.css b/src/www/syntax-editor/editor.css index 8640a819f..1675372f7 100644 --- a/src/www/syntax-editor/editor.css +++ b/src/www/syntax-editor/editor.css @@ -1,5 +1,5 @@ -body { - background: #ccc url("http://cloud.grammaticalframework.org/minibar/brushed-metal.png"); +body.syntax_editor { + background: #ccc url("../minibar/brushed-metal.png"); } .hidden diff --git a/src/www/syntax-editor/editor.html b/src/www/syntax-editor/editor.html index bb6b49fa8..36045957c 100644 --- a/src/www/syntax-editor/editor.html +++ b/src/www/syntax-editor/editor.html @@ -4,10 +4,10 @@ Syntax Editor - + - +

Syntax Editor

diff --git a/src/www/syntax-editor/editor_menu.js b/src/www/syntax-editor/editor_menu.js index e8d39ae37..3d813a79b 100644 --- a/src/www/syntax-editor/editor_menu.js +++ b/src/www/syntax-editor/editor_menu.js @@ -82,7 +82,7 @@ EditorMenu.prototype.show_grammarlist=function(dir,grammar_names,dir_count) { return hasPrefix(dir,"/tmp/gfse.") ? "gfse: "+g : g } function opt(g) { return option(glabel(g),dir+g); } - appendChildren(grammar_menu,map(opt,grammar_names)); + appendChildren(t.ui.grammar_menu,map(opt,grammar_names)); function pick_first_grammar() { if(t.timeout) clearTimeout(t.timeout),t.timeout=null; var grammar0=t.options.initial.grammar; -- cgit v1.2.3