Commit b2eb5ed3d108dbb9edaadc7f56df258ed31b2fa6
1 parent
503e5ace
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
10 additions
and
8 deletions
Show diff stats
ajuda_usuario.php
... | ... | @@ -119,18 +119,18 @@ function inicia() |
119 | 119 | {} |
120 | 120 | else{ |
121 | 121 | if(idajuda == "") |
122 | - ins += "<p style='font-size:18px' ><b>"+g_traducao_ajuda_categorias[key].titulo+"</b></p>"; | |
122 | + ins += "<p style='font-size:18px' ><b>"+g_traducao_ajuda_categorias[key].titulo+"</b></p>"; | |
123 | 123 | if(g_traducao_ajuda_categorias[key].observacao && idajuda == "") |
124 | - ins += "<p style='font-size:14px;color:gray' >"+g_traducao_ajuda_categorias[key].observacao+"</p>"; | |
124 | + ins += "<p style='font-size:14px;color:gray' >"+g_traducao_ajuda_categorias[key].observacao+"</p>"; | |
125 | 125 | if(idajuda == "") |
126 | - pegaAjuda("ferramentas",key); | |
126 | + pegaAjuda("ferramentas",key); | |
127 | 127 | else{ |
128 | 128 | pegaAjuda("ferramentas",g_traducao_ajuda_categorias[key]); |
129 | 129 | } |
130 | 130 | if(idcategoria == ""){ |
131 | 131 | document.getElementById("resultado").innerHTML = ins+"</div>"; |
132 | 132 | expande(idajuda); |
133 | - return; | |
133 | + //return; | |
134 | 134 | } |
135 | 135 | } |
136 | 136 | } |
... | ... | @@ -139,10 +139,12 @@ function inicia() |
139 | 139 | } |
140 | 140 | function expande(id){ |
141 | 141 | var i = document.getElementById(id); |
142 | - if(i.style.display=="none") | |
143 | - i.style.display = "block"; | |
144 | - else | |
145 | - i.style.display="none"; | |
142 | + if(i){ | |
143 | + if(i.style.display=="none") | |
144 | + i.style.display = "block"; | |
145 | + else | |
146 | + i.style.display="none"; | |
147 | + } | |
146 | 148 | } |
147 | 149 | function expandirtudo(){ |
148 | 150 | for(var key in g_traducao_ajuda.ferramentas){ | ... | ... |