From 0037e9bbf231f18e4d94ded766d5cdc8a0eb496b Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 29 Mar 2011 22:56:25 +0000 Subject: [PATCH] --- ferramentas/identifica/index.js.php | 16 ++++++++++------ ferramentas/inseretxt/index.js.php | 2 +- ferramentas/inserexy2/index.js.php | 6 +++--- ferramentas/selecao/index.js.php | 29 +++++++++-------------------- 4 files changed, 23 insertions(+), 30 deletions(-) diff --git a/ferramentas/identifica/index.js.php b/ferramentas/identifica/index.js.php index e843ed6..74239d9 100644 --- a/ferramentas/identifica/index.js.php +++ b/ferramentas/identifica/index.js.php @@ -174,15 +174,19 @@ i3GEOF.identifica = { //verifica se existem sistemas para identificar // i3GEOF.identifica.atualizaSistemas(); - if (i3GEO.temaAtivo !== "") - {i3GEOF.identifica.buscaDadosTema(i3GEO.temaAtivo);} + if(i3GEO.temaAtivo !== ""){ + //verifica se o tema ativo pode ser identificado + temp = i3GEO.arvoreDeCamadas.pegaTema(i3GEO.temaAtivo); + if(temp.identifica.toLowerCase() !== "nao") + {i3GEOF.identifica.buscaDadosTema(i3GEO.temaAtivo);} + } } catch(erro){alert(erro);} - var Dom = YAHOO.util.Dom, - Event = YAHOO.util.Event, - col1 = null - col2 = null; + var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event, + col1 = null, + col2 = null; col1 = Dom.get('i3GEOidentificatemaativo'); col2 = Dom.get('i3GEOidentificaocorrencia'); diff --git a/ferramentas/inseretxt/index.js.php b/ferramentas/inseretxt/index.js.php index 1ac8d5d..e4042eb 100644 --- a/ferramentas/inseretxt/index.js.php +++ b/ferramentas/inseretxt/index.js.php @@ -165,7 +165,7 @@ i3GEOF.inseretxt = { $inputText("","","i3GEOinseretxttamanho_i","",2,"8") + ' ' + ' Largura do conector:' + - $inputText("","","i3GEOinseretxttamanho_c","",2,"8") + + $inputText("","","i3GEOinseretxttamanho_c","",2,"2") + ' ' + '  ' + diff --git a/ferramentas/inserexy2/index.js.php b/ferramentas/inserexy2/index.js.php index 38dcc57..7a4ba7a 100644 --- a/ferramentas/inserexy2/index.js.php +++ b/ferramentas/inserexy2/index.js.php @@ -663,9 +663,9 @@ i3GEOF.inserexy = { mostra = function(retorno){ i3GEOF.inserexy.aguarde.visibility = "hidden"; if (retorno.data !== undefined){ - var ins = "
"; - ins += "
"; - ins += "
"; + var ins = "
"; + ins += "
"; + ins += "
"; $i("i3GEOinserexywktres").innerHTML = "

"+ins+"

"; } else diff --git a/ferramentas/selecao/index.js.php b/ferramentas/selecao/index.js.php index 72964f7..70a4f26 100644 --- a/ferramentas/selecao/index.js.php +++ b/ferramentas/selecao/index.js.php @@ -464,26 +464,15 @@ i3GEOF.selecao = { {return;} ppx = objposicaocursor.imgx + adicionaxyBox[0]; py = objposicaocursor.imgy + adicionaxyBox[1]; - if (navn){ - if ((ppx > boxxini) && ((ppx - boxxini - 2) > 0)) - {bxs.width = ppx - boxxini - 2;} - if ((py > boxyini) && ((py - boxyini - 2) > 0)) - {bxs.height = py - boxyini - 2;} - if (ppx < boxxini) - {bxs.left = ppx;bxs.width = boxxini - ppx + 2;} - if (py < boxyini) - {bxs.top = py;bxs.height = boxyini - py + 2;} - } - else{ - if (ppx > boxxini) - {bxs.width = ppx - boxxini + "px";} - if (py > boxyini) - {bxs.height = py - boxyini + "px";} - if (ppx < boxxini) - {bxs.left = ppx + "px";bxs.width = boxxini - ppx + "px";} - if (py < boxyini) - {bxs.top = py + "px";bxs.height = boxyini - py + "px";} - } + + if ((ppx > boxxini) && ((ppx - boxxini - 2) > 0)) + {bxs.width = ppx - boxxini - 2;} + if ((py > boxyini) && ((py - boxyini - 2) > 0)) + {bxs.height = py - boxyini - 2;} + if (ppx < boxxini) + {bxs.left = ppx;bxs.width = boxxini - ppx + 2;} + if (py < boxyini) + {bxs.top = py;bxs.height = boxyini - py + 2;} }, /* Function: termina -- libgit2 0.21.2