Commit c8f5d9539e3cf1a673caa7d615c5e68d98e0b2af
1 parent
4cfcedb5
Exists in
master
and in
7 other branches
Alterada a chamada ajax para criação de um tema editável para etstar o uso de POST no CPAINT
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
ferramentas/inserexy2/index.js
... | ... | @@ -112,7 +112,7 @@ function criaLin() |
112 | 112 | { |
113 | 113 | var cp = new cpaint(); |
114 | 114 | cp.set_response_type("JSON"); |
115 | - //cp.set_debug(2) | |
115 | + //cp.set_debug(2) | |
116 | 116 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=sphPT2shp¶=linha&tema="+window.parent.g_nomepin; |
117 | 117 | cp.call(p,"sphPT2shp",window.parent.ajaxredesenha); |
118 | 118 | } |
... | ... | @@ -132,9 +132,12 @@ function criatemaeditavel() |
132 | 132 | $i("resultado").innerHTML = "" |
133 | 133 | var cp = new cpaint(); |
134 | 134 | cp.set_response_type("JSON"); |
135 | + cp.set_transfer_mode("POST"); | |
135 | 136 | //cp.set_debug(2) |
136 | - var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=criashpvazio"; | |
137 | - cp.call(p,"criaSHPvazio",ativanovotema); | |
137 | + //var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=criashpvazio"; | |
138 | + //cp.call(p,"criaSHPvazio",ativanovotema); | |
139 | + var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid; | |
140 | + cp.call(p,"criaSHPvazio",ativanovotema,"&funcao=criashpvazio"); | |
138 | 141 | } |
139 | 142 | //ativa o tema com o shape vazio |
140 | 143 | function ativanovotema(retorno) | ... | ... |