Commit ffc5ba4dc84d98d6bab243d4675f63636e5ff575
1 parent
0d7c0a27
Exists in
master
and in
7 other branches
Correção na obtenção do nome do layer
Showing
1 changed file
with
9 additions
and
6 deletions
Show diff stats
classesjs/datadownload.js
... | ... | @@ -47,12 +47,15 @@ loc = window.location.href; |
47 | 47 | g_locaplic = loc.split("/datadownload.htm"); |
48 | 48 | g_locaplic = g_locaplic[0]; |
49 | 49 | |
50 | -temp = loc.split("?"); | |
51 | -if(temp[1]) | |
52 | -{temaDownload = temp[1];} | |
53 | -else | |
54 | -{temaDownload = "";} | |
55 | - | |
50 | +temp = loc.split("temaDownload="); | |
51 | +if(temp[1]){ | |
52 | + temaDownload = temp[1]; | |
53 | + temaDownload = temaDownload.split("&"); | |
54 | + temaDownload = temaDownload[0]; | |
55 | +} | |
56 | +else{ | |
57 | + temaDownload = ""; | |
58 | +} | |
56 | 59 | // |
57 | 60 | //para efeitos de compatibilidade |
58 | 61 | // | ... | ... |