1
0
forked from GitHub/gf-core

minibar_translations.js: bug fix

Two methods used the global variable p instead of declaring a local variable p.
This caused the function p (that constructs HTML <p> elements) in support.js
to suddenly be redefined as a number.
This commit is contained in:
hallgren
2012-02-15 17:23:52 +00:00
parent 208a5ffc45
commit 739cdf56e9

View File

@@ -80,7 +80,7 @@ Translations.prototype.show_translations=function(translationResults) {
cnt>1 ? ""+cnt+" translations:":
"One translation:")));
*/
for(p=0;p<cnt;p++) {
for(var p=0;p<cnt;p++) {
var tra=translationResults[p];
if (tra.translations != null) {
for (q = 0; q < tra.translations.length; q++) {
@@ -122,7 +122,7 @@ Translations.prototype.show_groupedtranslations=function(translationsResult) {
//trans.translations=translationsResult;
trans.single_translation=[];
trans.innerHTML="";
for(p=0;p<cnt;p++) {
for(var p=0;p<cnt;p++) {
var t=translationsResult[p];
if(to=="All" || t.to==to) {
var lin=t.linearizations;