Commit e4ce2db93ea63dca0197bdfee32f32319e9a3209
1 parent
12a6eca2
Exists in
master
and in
7 other branches
Correção na ferramenta de edição de legenda
Showing
3 changed files
with
5 additions
and
4 deletions
Show diff stats
classesphp/classe_alteraclasse.php
@@ -179,8 +179,9 @@ $exps - lista com as novas expressões | @@ -179,8 +179,9 @@ $exps - lista com as novas expressões | ||
179 | $classe->set("status",MS_DEFAULT); | 179 | $classe->set("status",MS_DEFAULT); |
180 | $classe->set("name",$nomes[$i]); | 180 | $classe->set("name",$nomes[$i]); |
181 | $e = $exps[$i]; | 181 | $e = $exps[$i]; |
182 | - $e = str_replace("\\","",$e); | 182 | + $e = str_replace("\\","'",$e); |
183 | $e = str_replace('"',"'",$e); | 183 | $e = str_replace('"',"'",$e); |
184 | + $e = str_replace("''","'",$e); | ||
184 | $classe->setexpression($e); | 185 | $classe->setexpression($e); |
185 | } | 186 | } |
186 | } | 187 | } |
exemplos/guias2.htm
@@ -142,7 +142,7 @@ | @@ -142,7 +142,7 @@ | ||
142 | Corpo do mapa. Pode ser reposicionado, mas não mude os IDs. Se vc quiser que o mapa tenha um tamanho específico, inclua o estilo, exemplo, style=width:300px;height:300px | 142 | Corpo do mapa. Pode ser reposicionado, mas não mude os IDs. Se vc quiser que o mapa tenha um tamanho específico, inclua o estilo, exemplo, style=width:300px;height:300px |
143 | Vc pode usar o estilo para definir o tamanho do mapa. Se não tiver estilo definido, o tamanho será automático | 143 | Vc pode usar o estilo para definir o tamanho do mapa. Se não tiver estilo definido, o tamanho será automático |
144 | --> | 144 | --> |
145 | - <tr><td class=verdeclaro id=contemImg > | 145 | + <tr><td class=verdeclaro id=contemImg > |
146 | <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div> | 146 | <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div> |
147 | </td></tr> | 147 | </td></tr> |
148 | </table> | 148 | </table> |
ferramentas/legenda/index.js.php
@@ -306,7 +306,7 @@ i3GEOF.legenda = { | @@ -306,7 +306,7 @@ i3GEOF.legenda = { | ||
306 | id = retorno.data[i].tema+"-"+retorno.data[i].idclasse; //layer+indice da classe | 306 | id = retorno.data[i].tema+"-"+retorno.data[i].idclasse; //layer+indice da classe |
307 | re = new RegExp("'", "g"); | 307 | re = new RegExp("'", "g"); |
308 | exp = (retorno.data[i].expressao).replace(re,'"'); | 308 | exp = (retorno.data[i].expressao).replace(re,'"'); |
309 | - ins.push("<tr><td><img style='cursor:pointer' title='clique para excluir' onclick='i3GEOF.legenda.excluilinhaf(this)' src='"+i3GEO.configura.locaplic+"/imagens/x.gif' title='excluir' /></td><td><img style='cursor:pointer' title='clique para alterar' src='"+retorno.data[i].imagem+"' onclick='i3GEOF.legenda.editaSimbolo(\"i3GEOlegendaid_"+id+"\")' /></td><td>"); | 309 | + ins.push("<tr><td><img style='cursor:pointer' title='clique para excluir' onclick='i3GEOF.legenda.excluilinhaf(this)' src='"+i3GEO.configura.locaplic+"/imagens/x.gif' title='excluir' /></td><td><img style='cursor:pointer' title='clique para alterar' src='"+retorno.data[i].imagem+"' onclick=i3GEOF.legenda.editaSimbolo('i3GEOlegendaid_"+id+"') /></td><td>"); |
310 | ins.push($inputText("","","i3GEOlegendaid_"+id,"digite o novo nome",30,retorno.data[i].nomeclasse,"nome")); | 310 | ins.push($inputText("","","i3GEOlegendaid_"+id,"digite o novo nome",30,retorno.data[i].nomeclasse,"nome")); |
311 | ins.push("</td><td>"); | 311 | ins.push("</td><td>"); |
312 | ins.push($inputText("","","i3GEOlegendaid_"+id,"digite a nova expressão",30,exp,"expressao")); | 312 | ins.push($inputText("","","i3GEOlegendaid_"+id,"digite a nova expressão",30,exp,"expressao")); |
@@ -539,7 +539,7 @@ i3GEOF.legenda = { | @@ -539,7 +539,7 @@ i3GEOF.legenda = { | ||
539 | try{ | 539 | try{ |
540 | $i("i3GEOlegendaguia1obj").style.display="none"; | 540 | $i("i3GEOlegendaguia1obj").style.display="none"; |
541 | $i("i3GEOlegendaguia3obj").style.display="block"; | 541 | $i("i3GEOlegendaguia3obj").style.display="block"; |
542 | - var id = id.split("_"),estilo,p,cp; | 542 | + var id = id.split("-"),estilo,p,cp; |
543 | i3GEOF.legenda.classe = id[1]; | 543 | i3GEOF.legenda.classe = id[1]; |
544 | i3GEOF.legenda.estilo = 0; | 544 | i3GEOF.legenda.estilo = 0; |
545 | p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=editasimbolo&opcao=pegaparametros&tema="+i3GEOF.legenda.tema+"&classe="+id[1]; | 545 | p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=editasimbolo&opcao=pegaparametros&tema="+i3GEOF.legenda.tema+"&classe="+id[1]; |