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
@@ -383,7 +383,7 @@ i3GEOF.graficointerativo1.dicionario = | @@ -383,7 +383,7 @@ i3GEOF.graficointerativo1.dicionario = | ||
383 | ], | 383 | ], |
384 | "idDoGrafico" : [ | 384 | "idDoGrafico" : [ |
385 | { | 385 | { |
386 | - pt : "ID do gráfico", | 386 | + pt : "Ientificador do grafico", |
387 | en : "", | 387 | en : "", |
388 | es : "" | 388 | es : "" |
389 | } | 389 | } |
ferramentas/graficointerativo1/index.js
@@ -255,7 +255,9 @@ i3GEOF.graficointerativo1 = | @@ -255,7 +255,9 @@ i3GEOF.graficointerativo1 = | ||
255 | objs = c.getElementsByTagName("input"); | 255 | objs = c.getElementsByTagName("input"); |
256 | n = config.valoresCombosItens.inputs.length; | 256 | n = config.valoresCombosItens.inputs.length; |
257 | for (i = 0; i < n; i++) { | 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 | atualizaConfigGr(); | 262 | atualizaConfigGr(); |
261 | 263 | ||
@@ -287,7 +289,7 @@ i3GEOF.graficointerativo1 = | @@ -287,7 +289,7 @@ i3GEOF.graficointerativo1 = | ||
287 | janelas = i3GEOF.graficointerativo1.janelas; | 289 | janelas = i3GEOF.graficointerativo1.janelas; |
288 | n = janelas.length; | 290 | n = janelas.length; |
289 | for (i = 0; i < n; i++) { | 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 | c = i3GEOF.graficointerativo1.retornaConfig(janelas[i],novoid); | 293 | c = i3GEOF.graficointerativo1.retornaConfig(janelas[i],novoid); |
292 | par.push(c); | 294 | par.push(c); |
293 | } | 295 | } |
@@ -366,9 +368,9 @@ i3GEOF.graficointerativo1 = | @@ -366,9 +368,9 @@ i3GEOF.graficointerativo1 = | ||
366 | } | 368 | } |
367 | objs = d.getElementsByTagName("input"); | 369 | objs = d.getElementsByTagName("input"); |
368 | for (obj in objs) { | 370 | for (obj in objs) { |
369 | - if (objs[obj].value && objs[obj].value != "") { | 371 | + //if (objs[obj].value && objs[obj].value != "") { |
370 | valoresCombosItens.inputs.push(objs[obj].value); | 372 | valoresCombosItens.inputs.push(objs[obj].value); |
371 | - } | 373 | + //} |
372 | } | 374 | } |
373 | par["valoresCombosItens"] = valoresCombosItens; | 375 | par["valoresCombosItens"] = valoresCombosItens; |
374 | par["idjanela"] = novoid; | 376 | par["idjanela"] = novoid; |
ferramentas/salvamapa/index.js
@@ -184,10 +184,10 @@ i3GEOF.salvaMapa = { | @@ -184,10 +184,10 @@ i3GEOF.salvaMapa = { | ||
184 | var n = retorno.length, | 184 | var n = retorno.length, |
185 | i, | 185 | i, |
186 | ins = "" + | 186 | ins = "" + |
187 | - "<select id='i3GEOFsalvamapaMapaId' >" + | 187 | + "<select id='i3GEOFsalvamapaMapaId' onchange='$i(\"i3GEOjanelaprompt\").value = this.options[this.selectedIndex].text'>" + |
188 | " <option value=''>---</option>"; | 188 | " <option value=''>---</option>"; |
189 | for(i=0;i<n;i++){ | 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 | ins += "</select>"; | 192 | ins += "</select>"; |
193 | $i(onde).innerHTML = ins; | 193 | $i(onde).innerHTML = ins; |