Commit f3599d9685ce36a4174b62ffdefab52e95325911
1 parent
5363dbc9
Exists in
master
and in
7 other branches
Correção na abertura do serviço OGC quando o tema é passado pela url
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
ogc/index.js
... | ... | @@ -202,6 +202,7 @@ function mostraLinksServico(tema,tipo,disabled){ |
202 | 202 | $(".modal-body").html('<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i><span class="sr-only">Aguarde</span>'); |
203 | 203 | var html; |
204 | 204 | if(disabled != ""){ |
205 | + $(".modal-body").html = ""; | |
205 | 206 | return; |
206 | 207 | } |
207 | 208 | else{ | ... | ... |
ogc/index.php
... | ... | @@ -76,7 +76,8 @@ include "../init/head.php"; |
76 | 76 | </a> |
77 | 77 | </div> |
78 | 78 | <h4> |
79 | - {{{nome_tema}}}{{{nome}}} | |
79 | + <a onclick="mostraLinksServico('{{codigo_tema}}','{{tipo}}','{{disabledogc}}');$('#modalCamada').modal('show');" href="#"> | |
80 | + {{{nome_tema}}}{{{nome}}}</a> | |
80 | 81 | <a class="{{hidden}}" href="{{link_tema}}{{link}}" target="_blank"><i class="fa fa-link"></i></a> |
81 | 82 | </h4> |
82 | 83 | </div> |
... | ... | @@ -301,7 +302,7 @@ include "../init/head.php"; |
301 | 302 | mostraLinksServico(temaOgc.split("_")[1],"meta") |
302 | 303 | } |
303 | 304 | else{ |
304 | - mostraLinksServico(temaOgc,"tema") | |
305 | + mostraLinksServico(temaOgc,"tema",'') | |
305 | 306 | } |
306 | 307 | $("#modalCamada").modal('show'); |
307 | 308 | } |
... | ... | @@ -315,7 +316,7 @@ include "../init/head.php"; |
315 | 316 | mostraLinksDownload(temaDownload.split("_")[1],"meta") |
316 | 317 | } |
317 | 318 | else{ |
318 | - mostraLinksDownload(temaDownload,"tema") | |
319 | + mostraLinksDownload(temaDownload,"tema",'') | |
319 | 320 | } |
320 | 321 | $("#modalCamada").modal('show'); |
321 | 322 | } | ... | ... |