Commit c8e408005df694809051819ecf9492d72475b420

Authored by Edmar Moretti
1 parent 1cec6578

Limpeza da lista de valores ao ser escolhido um novo item na seleção por atributos

ferramentas/selecao/index.js
... ... @@ -1014,7 +1014,6 @@ i3GEOF.selecao = {
1014 1014 var obj = (this.parentNode.parentNode.getElementsByTagName("input"))[0],
1015 1015 itemTema = (this.parentNode.parentNode.getElementsByTagName("select"))[0].value;
1016 1016 //FIXME ordenar a lista de valores e remover apostrofe
1017   - //FIXME limpar lista ao selecionar um novo campo
1018 1017 i3GEO.util.comboValoresItem(
1019 1018 "i3GEOselecaocbitens",
1020 1019 i3GEO.temaAtivo,
... ... @@ -1023,8 +1022,9 @@ i3GEOF.selecao = {
1023 1022 $i("i3GEOselecaovalores").innerHTML = "<br><p class=paragrafo >" + $trad('selecionaValor',i3GEOF.selecao.dicionario) + ":</p>"
1024 1023 + "<div class='styled-select' >" + retorno.dados + "</div>";
1025 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 1030 "i3GEOselecaovalores",
... ... @@ -1065,10 +1065,13 @@ i3GEOF.selecao = {
1065 1065  
1066 1066 ntd1 = document.createElement("td");
1067 1067 i3GEO.util.comboItens(
1068   - "none",
  1068 + "i3GEOselecaoItensAtrib",
1069 1069 i3GEO.temaAtivo,
1070 1070 function(retorno){
1071 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 1077 ntr.appendChild(ntd1);
... ...
testamapfile.php
... ... @@ -54,7 +54,7 @@ include(&quot;ms_configura.php&quot;);
54 54 include("classesphp/funcoes_gerais.php");
55 55 require_once("classesphp/pega_variaveis.php");
56 56 include_once ("classesphp/carrega_ext.php");
57   -
  57 +//TODO incluir teste da tabela de atributos
58 58 //
59 59 //carrega o phpmapscript
60 60 //
... ...