minibar: some functions were in the wrong file

This commit is contained in:
hallgren committed 2011-08-11 14:56:34 +00:00
1 parent 91cc4de1a2
commit 19d84b6de0
2 files changed
+23 -22

No files matched your search

-22
View File
@@ -145,28 +145,6 @@ Minibar.prototype.open_feedback=function() {
} }
} }
function abstree_button(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);
return i;
}
function alignment_button(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);
return i;
}
function parsetree_button(abs,lang) {
var i=button_img(tree_icon,"toggle_img(this)");
i.title="Click to display parse tree"
i.other=server.current_grammar_url
+"?command=parsetree&from="+lang+"&tree="+encodeURIComponent(abs);
return i;
}
// This function is called from feedback.html // This function is called from feedback.html
function prefill_feedback_form() { function prefill_feedback_form() {
var state=opener_element("minibar").state; var state=opener_element("minibar").state;
@@ -125,3 +125,26 @@ Translations.prototype.show_groupedtranslations=function(translationsResult) {
} }
} }
} }
function abstree_button(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);
return i;
}
function alignment_button(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);
return i;
}
function parsetree_button(abs,lang) {
var i=button_img(tree_icon,"toggle_img(this)");
i.title="Click to display parse tree"
i.other=server.current_grammar_url
+"?command=parsetree&from="+lang+"&tree="+encodeURIComponent(abs);
return i;
}