Commit 37823d9234da2b80d46b580c0de095576e05cc7c
1 parent
fbc10ce9
Exists in
master
and in
7 other branches
correção na montagem da lista de mapfiles no editor de atlas (apenas editores) p…
…ara sempre refazer a lista de mapfiles
Showing
2 changed files
with
7 additions
and
3 deletions
Show diff stats
admin/js/atlas.js
| ... | ... | @@ -272,7 +272,7 @@ function editar(tipo,id) |
| 272 | 272 | core_montaEditor("gravaDados('tema','"+id+"')") |
| 273 | 273 | $i("editor_bd").innerHTML = montaDivTema(dados) |
| 274 | 274 | core_carregando("desativa"); |
| 275 | - core_comboMapfiles("comboTemaIni","Ecodigo_tema",dados.codigo_tema,"",id) | |
| 275 | + core_comboMapfiles("comboTemaIni","Ecodigo_tema",dados.codigo_tema,"",true) | |
| 276 | 276 | } |
| 277 | 277 | core_carregando("desativa"); |
| 278 | 278 | } | ... | ... |
admin/js/core.js
| ... | ... | @@ -433,12 +433,16 @@ id - id do combo que será criado |
| 433 | 433 | marcar - valor que será marcado como selecionado |
| 434 | 434 | |
| 435 | 435 | funcao - string com o nome da função que será executada no evento onchange |
| 436 | + | |
| 437 | +recarrega {booblean} - força recarregar o combo de mapfiles | |
| 436 | 438 | */ |
| 437 | -function core_comboMapfiles(onde,id,marcar,funcao) | |
| 439 | +function core_comboMapfiles(onde,id,marcar,funcao,recarrega) | |
| 438 | 440 | { |
| 439 | 441 | if(arguments.length == 3) |
| 440 | 442 | {var funcao = "";} |
| 441 | - if($mapfiles == "") | |
| 443 | + if(!recarrega) | |
| 444 | + {recarrega = false;} | |
| 445 | + if($mapfiles == "" || recarrega === true) | |
| 442 | 446 | { |
| 443 | 447 | core_pegaMapfiles("core_comboMapfiles('"+onde+"','"+id+"','"+marcar+"','"+funcao+"')") |
| 444 | 448 | } | ... | ... |