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