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,6 +202,7 @@ function mostraLinksServico(tema,tipo,disabled){ | ||
| 202 | $(".modal-body").html('<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i><span class="sr-only">Aguarde</span>'); | 202 | $(".modal-body").html('<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i><span class="sr-only">Aguarde</span>'); |
| 203 | var html; | 203 | var html; |
| 204 | if(disabled != ""){ | 204 | if(disabled != ""){ |
| 205 | + $(".modal-body").html = ""; | ||
| 205 | return; | 206 | return; |
| 206 | } | 207 | } |
| 207 | else{ | 208 | else{ |
ogc/index.php
| @@ -76,7 +76,8 @@ include "../init/head.php"; | @@ -76,7 +76,8 @@ include "../init/head.php"; | ||
| 76 | </a> | 76 | </a> |
| 77 | </div> | 77 | </div> |
| 78 | <h4> | 78 | <h4> |
| 79 | - {{{nome_tema}}}{{{nome}}} | 79 | + <a onclick="mostraLinksServico('{{codigo_tema}}','{{tipo}}','{{disabledogc}}');$('#modalCamada').modal('show');" href="#"> |
| 80 | + {{{nome_tema}}}{{{nome}}}</a> | ||
| 80 | <a class="{{hidden}}" href="{{link_tema}}{{link}}" target="_blank"><i class="fa fa-link"></i></a> | 81 | <a class="{{hidden}}" href="{{link_tema}}{{link}}" target="_blank"><i class="fa fa-link"></i></a> |
| 81 | </h4> | 82 | </h4> |
| 82 | </div> | 83 | </div> |
| @@ -301,7 +302,7 @@ include "../init/head.php"; | @@ -301,7 +302,7 @@ include "../init/head.php"; | ||
| 301 | mostraLinksServico(temaOgc.split("_")[1],"meta") | 302 | mostraLinksServico(temaOgc.split("_")[1],"meta") |
| 302 | } | 303 | } |
| 303 | else{ | 304 | else{ |
| 304 | - mostraLinksServico(temaOgc,"tema") | 305 | + mostraLinksServico(temaOgc,"tema",'') |
| 305 | } | 306 | } |
| 306 | $("#modalCamada").modal('show'); | 307 | $("#modalCamada").modal('show'); |
| 307 | } | 308 | } |
| @@ -315,7 +316,7 @@ include "../init/head.php"; | @@ -315,7 +316,7 @@ include "../init/head.php"; | ||
| 315 | mostraLinksDownload(temaDownload.split("_")[1],"meta") | 316 | mostraLinksDownload(temaDownload.split("_")[1],"meta") |
| 316 | } | 317 | } |
| 317 | else{ | 318 | else{ |
| 318 | - mostraLinksDownload(temaDownload,"tema") | 319 | + mostraLinksDownload(temaDownload,"tema",'') |
| 319 | } | 320 | } |
| 320 | $("#modalCamada").modal('show'); | 321 | $("#modalCamada").modal('show'); |
| 321 | } | 322 | } |