Commit 1e5fbed3580ec52620eee8c381fd8e16907e5376
1 parent
b28752bb
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
10 additions
and
4 deletions
Show diff stats
classesphp/classe_alteraclasse.php
@@ -220,6 +220,7 @@ $exps - lista com as novas expressões | @@ -220,6 +220,7 @@ $exps - lista com as novas expressões | ||
220 | $e = str_replace("\\","'",$e); | 220 | $e = str_replace("\\","'",$e); |
221 | $e = str_replace('"',"'",$e); | 221 | $e = str_replace('"',"'",$e); |
222 | $e = str_replace("''","'",$e); | 222 | $e = str_replace("''","'",$e); |
223 | + $e = str_replace("##","'",$e); | ||
223 | $classe->setexpression($e); | 224 | $classe->setexpression($e); |
224 | } | 225 | } |
225 | } | 226 | } |
ferramentas/legenda/index.js.php
@@ -534,7 +534,9 @@ i3GEOF.legenda = { | @@ -534,7 +534,9 @@ i3GEOF.legenda = { | ||
534 | n, | 534 | n, |
535 | p, | 535 | p, |
536 | cp, | 536 | cp, |
537 | - temp; | 537 | + temp, |
538 | + expn, | ||
539 | + re = new RegExp('"', "g");; | ||
538 | for (t=0;t<trs.length;t++){ | 540 | for (t=0;t<trs.length;t++){ |
539 | if(trs[t].childNodes){ | 541 | if(trs[t].childNodes){ |
540 | nn = trs[t].childNodes; | 542 | nn = trs[t].childNodes; |
@@ -547,8 +549,10 @@ i3GEOF.legenda = { | @@ -547,8 +549,10 @@ i3GEOF.legenda = { | ||
547 | temp = (isn[0].id).split("i3GEOlegendaid_"); | 549 | temp = (isn[0].id).split("i3GEOlegendaid_"); |
548 | ids.push(temp[1]); | 550 | ids.push(temp[1]); |
549 | } | 551 | } |
550 | - if(isn[0].name == "expressao") | ||
551 | - {exps.push(isn[0].value);} | 552 | + if(isn[0].name == "expressao"){ |
553 | + expn = (isn[0].value).replace(re,'##'); | ||
554 | + exps.push(expn); | ||
555 | + } | ||
552 | } | 556 | } |
553 | } | 557 | } |
554 | } | 558 | } |
@@ -558,7 +562,8 @@ i3GEOF.legenda = { | @@ -558,7 +562,8 @@ i3GEOF.legenda = { | ||
558 | nomes = nomes.join(";"); | 562 | nomes = nomes.join(";"); |
559 | exps = exps.join(";"); | 563 | exps = exps.join(";"); |
560 | temp = function(){ | 564 | temp = function(){ |
561 | - i3GEOF.legenda.mostralegenda(); | 565 | + i3GEOF.legenda.aguarde.visibility = "hidden"; |
566 | + i3GEOF.legenda.mostralegenda(); | ||
562 | i3GEO.atualiza(); | 567 | i3GEO.atualiza(); |
563 | i3GEO.Interface.atualizaTema("",i3GEOF.legenda.tema); | 568 | i3GEO.Interface.atualizaTema("",i3GEOF.legenda.tema); |
564 | i3GEO.arvoreDeCamadas.atualizaLegenda(i3GEOF.legenda.tema); | 569 | i3GEO.arvoreDeCamadas.atualizaLegenda(i3GEOF.legenda.tema); |