Commit dad14e6f40f05b4789d1317565e7de508975e798

Authored by Edmar Moretti
1 parent b2d09e5e

correção de problemas com o escopo de algumas variáveis

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
classesjs/datadownload.js
... ... @@ -259,7 +259,7 @@ function processaGrupos(retorno)
259 259 var ngSgrupo = retorno.data.grupos[ig].subgrupos;
260 260 if (retorno.data.grupos[ig].subgrupos)
261 261 {
262   - for (var sg=0;sg<ngSgrupo.length;sg++)
  262 + for (sg=0;sg<ngSgrupo.length;sg++)
263 263 {
264 264 if (ngSgrupo[sg].download == "sim")
265 265 {down = "sim"}
... ... @@ -270,7 +270,7 @@ function processaGrupos(retorno)
270 270 var nomeGrupo = retorno.data.grupos[ig].nome;
271 271 mytreeview2.createItem("grupo"+ig, nomeGrupo, g_locaplic+"/imagens/folder-s.gif", true, true, true, "item1");
272 272 var cor = "rgb(230,230,230)";
273   - for (var sg=0;sg<ngSgrupo.length;sg++)
  273 + for (sg=0;sg<ngSgrupo.length;sg++)
274 274 {
275 275 if (ngSgrupo[sg].download != "nao")
276 276 {
... ... @@ -336,7 +336,7 @@ function processaTemas(retorno)
336 336 {
337 337 var inp = "<img src="+g_locaplic+"/imagens/down1.gif style='text-align:left;cursor:pointer;' onclick='download(\""+retorno.data.temas[st].tid+"\")' />";
338 338 nomeTema = "<span style='background-color:"+cor+"' >"+inp+nome+lk+"</span>";
339   - mytreeview2.createItem("tema"+ig+""+sg+""+st, nomeTema, g_locaplic+"/imagens/branco0.gif", false, true, true, g_arvoreClick);
  339 + mytreeview2.createItem("tema"+g_arvoreClick+""+sg+""+st, nomeTema, g_locaplic+"/imagens/branco0.gif", false, true, true, g_arvoreClick);
340 340 if (cor == "rgb(251,246,184)"){var cor = "rgb(255,255,255)";}
341 341 else
342 342 {var cor = "rgb(251,246,184)";}
... ...