Commit 83f09c8445833594530660e99dc8d060745e7ed2
1 parent
f434daa0
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
10 additions
and
5 deletions
Show diff stats
ferramentas/nuvemtags/index.js
... | ... | @@ -25,13 +25,18 @@ parametrosURL() |
25 | 25 | |
26 | 26 | var montaNuvem = function(retorno) |
27 | 27 | { |
28 | - var tags = "" | |
29 | - for (i=0;i<retorno.data.length;i++) | |
28 | + if(retorno.data) | |
30 | 29 | { |
31 | - //eval("var h = retorno.data."+tag) | |
32 | - var h = retorno.data[i].temas.length*1 + 7 | |
33 | - tags += "<span> </span> <span onmouseout='this.style.textDecoration=\"none\"' onmouseover='this.style.textDecoration=\"underline\"' onclick='procurar(this)' style='cursor:pointer;vertical-align:middle;color:rgb(98,186,192);font-size:"+h+"pt;'>"+retorno.data[i].tag+"</span" | |
30 | + var tags = "" | |
31 | + for (i=0;i<retorno.data.length;i++) | |
32 | + { | |
33 | + //eval("var h = retorno.data."+tag) | |
34 | + var h = retorno.data[i].temas.length*1 + 7 | |
35 | + tags += "<span> </span> <span onmouseout='this.style.textDecoration=\"none\"' onmouseover='this.style.textDecoration=\"underline\"' onclick='procurar(this)' style='cursor:pointer;vertical-align:middle;color:rgb(98,186,192);font-size:"+h+"pt;'>"+retorno.data[i].tag+"</span" | |
36 | + } | |
34 | 37 | } |
38 | + else | |
39 | + {var tags = "Nenhum tag encontrado"} | |
35 | 40 | $i("resultado").innerHTML = tags; |
36 | 41 | aguarde("none") |
37 | 42 | } | ... | ... |