summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
}