diff --git a/init/index.js b/init/index.js index 056fdf3..99c4e8a 100755 --- a/init/index.js +++ b/init/index.js @@ -245,11 +245,15 @@ function reordenaBotoesPorFavoritos(){ var f = [], nf = [], favoritos = i3GEO.util.pegaCookie("favoritosInit"); + $(botoesIni).each( + function(i,el){ + el.href = el.href.replace("#topo",""); + } + ); if(favoritos){ favoritos = favoritos.split("|"); $(botoesIni).each( function(i,el){ - el.href = el.href.replace("#topo",""); if(jQuery.inArray(el.img,favoritos) >= 0){ f.push(el); } -- libgit2 0.21.2