minibar: make the feedback form work in the generic minibar

It is still disabled by default, since some manual configuraiton of
feedback.cgi is required.
This commit is contained in:
hallgren
2011-03-01 13:46:00 +00:00
parent f790bd949f
commit a27f58d6ae
2 changed files with 8 additions and 4 deletions

View File

@@ -389,11 +389,14 @@ Minibar.prototype.show_translations=function(translationResults) {
if(options.show_abstract && t.tree)
tbody.appendChild(tr([th(text("Abstract: ")),
tdt(abstree_button(t.tree),text(" "+t.tree))]));
for(var i=0;i<lin.length;i++)
for(var i=0;i<lin.length;i++) {
if(lin[i].to==to)
trans.single_translation.push(lin[i].text);
if(to=="All" || lin[i].to==to)
tbody.appendChild(tr([th(text(langpart(lin[i].to,grammar.name)+": ")),
tdt(parsetree_button(t.tree,lin[i].to),
text(lin[i].text))]));
}
trans.appendChild(wrap("table",tbody));
}
}