Commit f2ba3f2b1825ef66e96517b7dc4cdf68c7829446
1 parent
2ea1defa
Exists in
master
and in
7 other branches
Correção nos links dos botoes
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
init/index.js
| @@ -245,11 +245,15 @@ function reordenaBotoesPorFavoritos(){ | @@ -245,11 +245,15 @@ function reordenaBotoesPorFavoritos(){ | ||
| 245 | var f = [], | 245 | var f = [], |
| 246 | nf = [], | 246 | nf = [], |
| 247 | favoritos = i3GEO.util.pegaCookie("favoritosInit"); | 247 | favoritos = i3GEO.util.pegaCookie("favoritosInit"); |
| 248 | + $(botoesIni).each( | ||
| 249 | + function(i,el){ | ||
| 250 | + el.href = el.href.replace("#topo",""); | ||
| 251 | + } | ||
| 252 | + ); | ||
| 248 | if(favoritos){ | 253 | if(favoritos){ |
| 249 | favoritos = favoritos.split("|"); | 254 | favoritos = favoritos.split("|"); |
| 250 | $(botoesIni).each( | 255 | $(botoesIni).each( |
| 251 | function(i,el){ | 256 | function(i,el){ |
| 252 | - el.href = el.href.replace("#topo",""); | ||
| 253 | if(jQuery.inArray(el.img,favoritos) >= 0){ | 257 | if(jQuery.inArray(el.img,favoritos) >= 0){ |
| 254 | f.push(el); | 258 | f.push(el); |
| 255 | } | 259 | } |