" + i;
temp = 'var nova = document.getElementById("i3geo_escalanum").value;';
@@ -279,8 +283,7 @@ i3GEO.gadgets =
if ($i(id)) {
if (!$i("imagemEscalaGrafica")) {
ins =
- " ";
$i(id).innerHTML = ins;
}
@@ -328,89 +331,95 @@ i3GEO.gadgets =
if (typeof (console) !== 'undefined')
console.info("i3GEO.gadgets.mostraBuscaRapida()");
- var i, ins, temp, fbusca;
+ var ins, temp, fbusca, hashMustache, templateMustache;
if (arguments.length === 0) {
id = i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.idhtml;
}
i3GEO.gadgets.mostraBuscaRapida.id = id;
- if ($i(id)) {
- i =
- "";
- ins =
- " | "
- + " | "
- + "" + i + " | "
- + " | ";
- temp = $i(id);
- if (temp) {
- fbusca =
- function() {
- if (i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.google === false
- && i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.servicosexternos === false
- && i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.temasmapa === false) {
- i3GEO.janela.tempoMsg($trad("x35"));
- return;
- }
- if ($i("valorBuscaRapida" + id).value === "") {
- i3GEO.janela.tempoMsg($trad("x36"));
- return;
- }
- i3GEO.janela.cria(
- "300px",
- "280px",
- i3GEO.configura.locaplic + "/ferramentas/buscarapida/index.htm",
- "",
- "",
- $trad("o2"));
- return false;
- };
- temp.innerHTML = ins;
- $i("i3GEObotaoBuscaRapida" + id).onclick = fbusca;
- $i("i3GEObotaoFormBuscaRapida" + id).onsubmit = fbusca;
- $i("i3GEObotaoPropriedadesBuscaRapida" + id).onclick =
- function() {
- var ins, interno = "", externo = "", google = "";
- i3GEO.janela.cria("300px", "150px", "", "", "", $trad("s5"), "i3GEOpropriedadesBuscaRapida" + id);
- if (i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.servicosexternos) {
- externo = "checked";
- }
- if (i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.temasmapa) {
- interno = "checked";
- }
- ins =
- ""
- + $trad("x37")
- + ": "
- + ""
- + " | "
- + $trad("x38")
- + " | "
- + " | " + $trad("x39") + " | ";
- if (i3GEO.Interface.ATUAL === "googlemaps") {
- if (i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.google) {
- google = "checked";
- }
- ins +=
- " | Google | ";
- } else {
- i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.google = false;
+ temp = $i(id);
+ if (temp) {
+ hashMustache = {
+ "idform" : "i3GEObotaoFormBuscaRapida" + id,
+ "idinput" : "valorBuscaRapida" + id,
+ "link" : i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=8&idajuda=71",
+ "branco" : i3GEO.configura.locaplic + "/imagens/branco.gif",
+ "ajuda" : $trad("p13"),
+ "prop" : "i3GEObotaoPropriedadesBuscaRapida" + id,
+ "busca" : "i3GEObotaoBuscaRapida" + id
+ };
+ templateMustache =
+ "" + ""
+ + "  | "
+ + "  | "
+ + " "
+ + " "
+ + " | "
+ + "  | "
+ + " ";
+
+ ins = Mustache.render(templateMustache, hashMustache);
+ temp.innerHTML = ins;
+ fbusca =
+ function() {
+ if (i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.google === false && i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.servicosexternos === false
+ && i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.temasmapa === false) {
+ i3GEO.janela.tempoMsg($trad("x35"));
+ return;
+ }
+ if ($i("valorBuscaRapida" + id).value === "") {
+ i3GEO.janela.tempoMsg($trad("x36"));
+ return;
+ }
+ i3GEO.janela.cria(
+ "300px",
+ "280px",
+ i3GEO.configura.locaplic + "/ferramentas/buscarapida/index.htm",
+ "",
+ "",
+ $trad("o2"));
+ return false;
+ };
+ $i("i3GEObotaoBuscaRapida" + id).onclick = fbusca;
+ $i("i3GEObotaoFormBuscaRapida" + id).onsubmit = fbusca;
+ $i("i3GEObotaoPropriedadesBuscaRapida" + id).onclick =
+ function() {
+ var ins, interno = "", externo = "", google = "";
+ i3GEO.janela.cria("300px", "150px", "", "", "", $trad("s5"), "i3GEOpropriedadesBuscaRapida" + id);
+ if (i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.servicosexternos) {
+ externo = "checked";
+ }
+ if (i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.temasmapa) {
+ interno = "checked";
+ }
+ ins =
+ "" + $trad("x37")
+ + ": "
+ + " " + "" + $trad("x40") + " ";
- $i("i3GEOpropriedadesBuscaRapida" + id + "_corpo").innerHTML = ins;
- };
- }
+ ins +=
+ " | Google | ";
+ } else {
+ i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.google = false;
+ }
+ ins += " " + "" + $trad("x40") + " ";
+ $i("i3GEOpropriedadesBuscaRapida" + id + "_corpo").innerHTML = ins;
+ };
}
},
/**
@@ -440,11 +449,13 @@ i3GEO.gadgets =
}
ins +=
" |