From 16536148a3c4b086e11bd6bb2c38e18b5e99f986 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 14 Aug 2012 13:31:13 +0000 Subject: [PATCH] Inclusão de função em core.js para filtrar listas pela letra inicial --- admin/html/editormapfile.html | 18 +++++++----------- admin/js/core.js | 29 +++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/admin/html/editormapfile.html b/admin/html/editormapfile.html index ca87c36..5127684 100644 --- a/admin/html/editormapfile.html +++ b/admin/html/editormapfile.html @@ -134,11 +134,12 @@ body { if (screen.availWidth > 700) { document.getElementById("divGeral").style.width = "700px"; } - var letras = "Todos A B C D E F G H I J K L M N O P Q R S T U V X Y Z _ 1 2 3 4 5 6 7 8 9" - .split(" "), nletras = letras.length, letraAtual = "", i, ins = ""; - if (i3GEO.util.pegaCookie("I3GEOletraAdmin")) { + if(i3GEO.util.pegaCookie("I3GEOletraAdmin")) { letraAtual = i3GEO.util.pegaCookie("I3GEOletraAdmin"); } + else{ + letraAtual = ""; + } function filtraLetra(letra) { letraAtual = letra; document.getElementById("tabela").innerHTML = "Aguarde..."; @@ -156,7 +157,7 @@ body { // cabecalhoGeral("cabecalhoPrincipal", "editormapfile"); temp = function() { - ins += "

Filtrar: " + var ins = "

Filtrar: " + "