Commit 694e47f62ef32e33802ee137d934afb8abbc8a27

Authored by Edmar Moretti
1 parent d2b06052
Exists in master

Correção na formação do título da camada quando gerada com o plugin parametrossql

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
ferramentas/parametrossql/index.js
@@ -296,7 +296,7 @@ i3GEOF.parametrossql = { @@ -296,7 +296,7 @@ i3GEOF.parametrossql = {
296 var i,n,ins = ""; 296 var i,n,ins = "";
297 ins += "<div style='width: 100%;' class='form-group label-fixed condensed'>" 297 ins += "<div style='width: 100%;' class='form-group label-fixed condensed'>"
298 + "<div style='width: 100%;' class='input-group'>" 298 + "<div style='width: 100%;' class='input-group'>"
299 - + "<select class='form-control' name='" +plugin.chave+ "' >"; 299 + + "<select data-titulo='" + plugin.titulo + "' class='form-control' name='" +plugin.chave+ "' >";
300 300
301 n = retorno.data.length; 301 n = retorno.data.length;
302 for(i=0; i<n; i++){ 302 for(i=0; i<n; i++){
@@ -327,8 +327,8 @@ i3GEOF.parametrossql = { @@ -327,8 +327,8 @@ i3GEOF.parametrossql = {
327 for (i = 0; i<n; i++) { 327 for (i = 0; i<n; i++) {
328 chaves.push(campos[i].name); 328 chaves.push(campos[i].name);
329 valores.push(campos[i].value); 329 valores.push(campos[i].value);
330 - //titulos.push($( campos[i] ).data( "titulo" ));  
331 - titulos.push(campos[i].options[campos[i].selectedIndex].text); 330 + titulos.push($( campos[i] ).data( "titulo" ));
  331 + //titulos.push(campos[i].options[campos[i].selectedIndex].text);
332 } 332 }
333 //verifica os objetos pois essa funcao pode ter sido chamada do mashup 333 //verifica os objetos pois essa funcao pode ter sido chamada do mashup
334 if(typeof i3geoOL != 'undefined' || typeof i3GeoMap != 'undefined'){ 334 if(typeof i3geoOL != 'undefined' || typeof i3GeoMap != 'undefined'){