Commit 1e5fbed3580ec52620eee8c381fd8e16907e5376

Authored by Edmar Moretti
1 parent b28752bb

--no commit message

classesphp/classe_alteraclasse.php
... ... @@ -220,6 +220,7 @@ $exps - lista com as novas expressões
220 220 $e = str_replace("\\","'",$e);
221 221 $e = str_replace('"',"'",$e);
222 222 $e = str_replace("''","'",$e);
  223 + $e = str_replace("##","'",$e);
223 224 $classe->setexpression($e);
224 225 }
225 226 }
... ...
ferramentas/legenda/index.js.php
... ... @@ -534,7 +534,9 @@ i3GEOF.legenda = {
534 534 n,
535 535 p,
536 536 cp,
537   - temp;
  537 + temp,
  538 + expn,
  539 + re = new RegExp('"', "g");;
538 540 for (t=0;t<trs.length;t++){
539 541 if(trs[t].childNodes){
540 542 nn = trs[t].childNodes;
... ... @@ -547,8 +549,10 @@ i3GEOF.legenda = {
547 549 temp = (isn[0].id).split("i3GEOlegendaid_");
548 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 562 nomes = nomes.join(";");
559 563 exps = exps.join(";");
560 564 temp = function(){
561   - i3GEOF.legenda.mostralegenda();
  565 + i3GEOF.legenda.aguarde.visibility = "hidden";
  566 + i3GEOF.legenda.mostralegenda();
562 567 i3GEO.atualiza();
563 568 i3GEO.Interface.atualizaTema("",i3GEOF.legenda.tema);
564 569 i3GEO.arvoreDeCamadas.atualizaLegenda(i3GEOF.legenda.tema);
... ...