Commit 51b829ed3f74f7f139740cf840ec98b134dc8a78
1 parent
ad5f3053
Exists in
master
and in
7 other branches
Correção na apresentação dos dados da ferramenta identifica que estava mostrando…
… apenas o primeiro resultado
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
ferramentas/identifica/index.js.php
| @@ -468,7 +468,7 @@ i3GEOF.identifica = { | @@ -468,7 +468,7 @@ i3GEOF.identifica = { | ||
| 468 | ntemas = retorno.length; | 468 | ntemas = retorno.length; |
| 469 | for(i=0;i<ntemas;i++) | 469 | for(i=0;i<ntemas;i++) |
| 470 | { | 470 | { |
| 471 | - resultados = retorno[i].resultado[0]; | 471 | + resultados = retorno[i].resultado; |
| 472 | if(resultados !== " ") | 472 | if(resultados !== " ") |
| 473 | { | 473 | { |
| 474 | res += "<div style='padding-top:6px;left:2px;text-align:left;width:80%;' >"+retorno[i].nome+"</div>"; | 474 | res += "<div style='padding-top:6px;left:2px;text-align:left;width:80%;' >"+retorno[i].nome+"</div>"; |
| @@ -477,11 +477,11 @@ i3GEOF.identifica = { | @@ -477,11 +477,11 @@ i3GEOF.identifica = { | ||
| 477 | for(j=0;j<nres;j++) | 477 | for(j=0;j<nres;j++) |
| 478 | { | 478 | { |
| 479 | if(resultados[j].link === "") | 479 | if(resultados[j].link === "") |
| 480 | - {res += "<div style='width:80%;text-align:left;background-color:"+cor+"' > "+resultados[j].alias+": "+resultados[j].valor+"</div>";} | 480 | + {res += "<div style='width:80%;text-align:left;background-color:"+cor+"' > "+resultados[j][0].alias+": "+resultados[j][0].valor+"</div>";} |
| 481 | else | 481 | else |
| 482 | - {res += "<div style='width:80%;text-align:left;background-color:"+cor+"' > "+resultados[j].alias+": <a href='"+resultados[j].link+"' target=_blank >"+resultados[j].valor+"</a></div>";} | 482 | + {res += "<div style='width:80%;text-align:left;background-color:"+cor+"' > "+resultados[j][0].alias+": <a href='"+resultados[j][0].link+"' target=_blank >"+resultados[j][0].valor+"</a></div>";} |
| 483 | if(resultados[j].img !== "") | 483 | if(resultados[j].img !== "") |
| 484 | - {res += "<div style='width:80%;text-align:left;background-color:"+cor+"' >"+resultados[j].img+"</div>";} | 484 | + {res += "<div style='width:80%;text-align:left;background-color:"+cor+"' >"+resultados[j][0].img+"</div>";} |
| 485 | if (cor === "RGB(250,250,250)"){cor = "beige";} | 485 | if (cor === "RGB(250,250,250)"){cor = "beige";} |
| 486 | else | 486 | else |
| 487 | {cor = "RGB(250,250,250)";} | 487 | {cor = "RGB(250,250,250)";} |