Commit 3d67c70dd041ccd1eea8da65afe12f1389bc62e5
1 parent
c735d8f7
Exists in
master
and in
7 other branches
correção na obtenção dos parâmetros dos gráficos ao salvar um mapa
Showing
4 changed files
with
9 additions
and
7 deletions
Show diff stats
admin/admin.db
No preview for this file type
ferramentas/graficointerativo1/dicionario.js
ferramentas/graficointerativo1/index.js
... | ... | @@ -255,7 +255,9 @@ i3GEOF.graficointerativo1 = |
255 | 255 | objs = c.getElementsByTagName("input"); |
256 | 256 | n = config.valoresCombosItens.inputs.length; |
257 | 257 | for (i = 0; i < n; i++) { |
258 | - objs[i].value = config.valoresCombosItens.inputs[i]; | |
258 | + if(objs[i]){ | |
259 | + objs[i].value = config.valoresCombosItens.inputs[i]; | |
260 | + } | |
259 | 261 | } |
260 | 262 | atualizaConfigGr(); |
261 | 263 | |
... | ... | @@ -287,7 +289,7 @@ i3GEOF.graficointerativo1 = |
287 | 289 | janelas = i3GEOF.graficointerativo1.janelas; |
288 | 290 | n = janelas.length; |
289 | 291 | for (i = 0; i < n; i++) { |
290 | - novoid = window.prompt($trad('idDoGrafico',i3GEOF.salvaMapa.dicionario),janelas[i]); | |
292 | + novoid = window.prompt($trad('idDoGrafico',i3GEOF.graficointerativo1.dicionario),janelas[i]); | |
291 | 293 | c = i3GEOF.graficointerativo1.retornaConfig(janelas[i],novoid); |
292 | 294 | par.push(c); |
293 | 295 | } |
... | ... | @@ -366,9 +368,9 @@ i3GEOF.graficointerativo1 = |
366 | 368 | } |
367 | 369 | objs = d.getElementsByTagName("input"); |
368 | 370 | for (obj in objs) { |
369 | - if (objs[obj].value && objs[obj].value != "") { | |
371 | + //if (objs[obj].value && objs[obj].value != "") { | |
370 | 372 | valoresCombosItens.inputs.push(objs[obj].value); |
371 | - } | |
373 | + //} | |
372 | 374 | } |
373 | 375 | par["valoresCombosItens"] = valoresCombosItens; |
374 | 376 | par["idjanela"] = novoid; | ... | ... |
ferramentas/salvamapa/index.js
... | ... | @@ -184,10 +184,10 @@ i3GEOF.salvaMapa = { |
184 | 184 | var n = retorno.length, |
185 | 185 | i, |
186 | 186 | ins = "" + |
187 | - "<select id='i3GEOFsalvamapaMapaId' >" + | |
187 | + "<select id='i3GEOFsalvamapaMapaId' onchange='$i(\"i3GEOjanelaprompt\").value = this.options[this.selectedIndex].text'>" + | |
188 | 188 | " <option value=''>---</option>"; |
189 | 189 | for(i=0;i<n;i++){ |
190 | - ins += "<option value='"+retorno[i].id_mapa+"'>"+retorno[i].id_mapa+" - "+retorno[i].nome_mapa+"</option>"; | |
190 | + ins += "<option value='"+retorno[i].id_mapa+"'>"+retorno[i].nome_mapa+"</option>"; | |
191 | 191 | } |
192 | 192 | ins += "</select>"; |
193 | 193 | $i(onde).innerHTML = ins; | ... | ... |