Commit c8e408005df694809051819ecf9492d72475b420
1 parent
1cec6578
Exists in
master
and in
7 other branches
Limpeza da lista de valores ao ser escolhido um novo item na seleção por atributos
Showing
2 changed files
with
8 additions
and
5 deletions
Show diff stats
ferramentas/selecao/index.js
@@ -1014,7 +1014,6 @@ i3GEOF.selecao = { | @@ -1014,7 +1014,6 @@ i3GEOF.selecao = { | ||
1014 | var obj = (this.parentNode.parentNode.getElementsByTagName("input"))[0], | 1014 | var obj = (this.parentNode.parentNode.getElementsByTagName("input"))[0], |
1015 | itemTema = (this.parentNode.parentNode.getElementsByTagName("select"))[0].value; | 1015 | itemTema = (this.parentNode.parentNode.getElementsByTagName("select"))[0].value; |
1016 | //FIXME ordenar a lista de valores e remover apostrofe | 1016 | //FIXME ordenar a lista de valores e remover apostrofe |
1017 | - //FIXME limpar lista ao selecionar um novo campo | ||
1018 | i3GEO.util.comboValoresItem( | 1017 | i3GEO.util.comboValoresItem( |
1019 | "i3GEOselecaocbitens", | 1018 | "i3GEOselecaocbitens", |
1020 | i3GEO.temaAtivo, | 1019 | i3GEO.temaAtivo, |
@@ -1023,8 +1022,9 @@ i3GEOF.selecao = { | @@ -1023,8 +1022,9 @@ i3GEOF.selecao = { | ||
1023 | $i("i3GEOselecaovalores").innerHTML = "<br><p class=paragrafo >" + $trad('selecionaValor',i3GEOF.selecao.dicionario) + ":</p>" | 1022 | $i("i3GEOselecaovalores").innerHTML = "<br><p class=paragrafo >" + $trad('selecionaValor',i3GEOF.selecao.dicionario) + ":</p>" |
1024 | + "<div class='styled-select' >" + retorno.dados + "</div>"; | 1023 | + "<div class='styled-select' >" + retorno.dados + "</div>"; |
1025 | if ($i("i3GEOselecaocbitens")){ | 1024 | if ($i("i3GEOselecaocbitens")){ |
1026 | - $i("i3GEOselecaocbitens").onchange = function() | ||
1027 | - {obj.value = this.value;}; | 1025 | + $i("i3GEOselecaocbitens").onchange = function(){ |
1026 | + obj.value = this.value; | ||
1027 | + }; | ||
1028 | } | 1028 | } |
1029 | }, | 1029 | }, |
1030 | "i3GEOselecaovalores", | 1030 | "i3GEOselecaovalores", |
@@ -1065,10 +1065,13 @@ i3GEOF.selecao = { | @@ -1065,10 +1065,13 @@ i3GEOF.selecao = { | ||
1065 | 1065 | ||
1066 | ntd1 = document.createElement("td"); | 1066 | ntd1 = document.createElement("td"); |
1067 | i3GEO.util.comboItens( | 1067 | i3GEO.util.comboItens( |
1068 | - "none", | 1068 | + "i3GEOselecaoItensAtrib", |
1069 | i3GEO.temaAtivo, | 1069 | i3GEO.temaAtivo, |
1070 | function(retorno){ | 1070 | function(retorno){ |
1071 | ntd1.innerHTML = "<div class='styled-select' style='width:95px;margin-left:5px;' >" + retorno.dados + "</div>"; | 1071 | ntd1.innerHTML = "<div class='styled-select' style='width:95px;margin-left:5px;' >" + retorno.dados + "</div>"; |
1072 | + $i("i3GEOselecaoItensAtrib").onchange = function(){ | ||
1073 | + $i("i3GEOselecaovalores").innerHTML = ""; | ||
1074 | + } | ||
1072 | } | 1075 | } |
1073 | ); | 1076 | ); |
1074 | ntr.appendChild(ntd1); | 1077 | ntr.appendChild(ntd1); |
testamapfile.php
@@ -54,7 +54,7 @@ include("ms_configura.php"); | @@ -54,7 +54,7 @@ include("ms_configura.php"); | ||
54 | include("classesphp/funcoes_gerais.php"); | 54 | include("classesphp/funcoes_gerais.php"); |
55 | require_once("classesphp/pega_variaveis.php"); | 55 | require_once("classesphp/pega_variaveis.php"); |
56 | include_once ("classesphp/carrega_ext.php"); | 56 | include_once ("classesphp/carrega_ext.php"); |
57 | - | 57 | +//TODO incluir teste da tabela de atributos |
58 | // | 58 | // |
59 | //carrega o phpmapscript | 59 | //carrega o phpmapscript |
60 | // | 60 | // |