summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2012-02-13 17:25:37 +0000
committerhallgren <hallgren@chalmers.se>2012-02-13 17:25:37 +0000
commit4c0e8c18c7a4d688ef2409724d6cf2876d698c3e (patch)
treeff867dcfae81b6383fa433b111495d601868c31c /src
parentfc897a909af265b11be606ae1149aff5e3beea28 (diff)
minibar: bug fix: accidental reference to global variable "server"
Diffstat (limited to 'src')
-rw-r--r--src/www/minibar/minibar_translations.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/www/minibar/minibar_translations.js b/src/www/minibar/minibar_translations.js
index 73bd4be6a..d4d9f62cf 100644
--- a/src/www/minibar/minibar_translations.js
+++ b/src/www/minibar/minibar_translations.js
@@ -140,24 +140,24 @@ Translations.prototype.show_groupedtranslations=function(translationsResult) {
}
-function abstree_button(abs) {
+Translations.prototype.abstree_button=function(abs) {
var i=button_img(tree_icon,"toggle_img(this)");
i.title="Click to display abstract syntax tree"
- i.other=server.current_grammar_url+"?command=abstrtree&tree="+encodeURIComponent(abs);
+ i.other=this.server.current_grammar_url+"?command=abstrtree&tree="+encodeURIComponent(abs);
return i;
}
-function alignment_button(abs) {
+Translations.prototype.alignment_button=function(abs) {
var i=button_img(alignment_icon,"toggle_img(this)");
i.title="Click to display word alignment"
- i.other=server.current_grammar_url+"?command=alignment&tree="+encodeURIComponent(abs);
+ i.other=this.server.current_grammar_url+"?command=alignment&tree="+encodeURIComponent(abs);
return i;
}
-function parsetree_button(abs,lang) {
+Translations.prototype.parsetree_button=function(abs,lang) {
var i=button_img(tree_icon,"toggle_img(this)");
i.title="Click to display parse tree"
- i.other=server.current_grammar_url
+ i.other=this.server.current_grammar_url
+"?command=parsetree&from="+lang+"&tree="+encodeURIComponent(abs);
return i;
}