From facdfb63731af33c0cc72db7c38449dc93d50268 Mon Sep 17 00:00:00 2001 From: hallgren Date: Mon, 13 Feb 2012 17:25:37 +0000 Subject: [PATCH] minibar: bug fix: accidental reference to global variable "server" --- src/www/minibar/minibar_translations.js | 12 ++++++------ 1 file 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; }