Commit 347ecb7f28ff2006dc44b530e2e587aab6f0c1ce
1 parent
dd8a5f2c
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
11 additions
and
2 deletions
Show diff stats
classesjs/atlas.js
| @@ -51,9 +51,15 @@ Function: iniciaAtlas | @@ -51,9 +51,15 @@ Function: iniciaAtlas | ||
| 51 | Inicializa o Atlas. | 51 | Inicializa o Atlas. |
| 52 | 52 | ||
| 53 | Pega o título e monta as pranchas | 53 | Pega o título e monta as pranchas |
| 54 | + | ||
| 55 | +Parametros: | ||
| 56 | + | ||
| 57 | +combow {numerico} - largura do combo. Para escapar, utilize 0 | ||
| 54 | */ | 58 | */ |
| 55 | -function iniciaAtlas() | 59 | +function iniciaAtlas(combow) |
| 56 | { | 60 | { |
| 61 | + if(!combow) | ||
| 62 | + {combow = 0;} | ||
| 57 | document.body.style.width = "100%"; | 63 | document.body.style.width = "100%"; |
| 58 | document.body.style.height = parseInt(document.body.style.height)+20; | 64 | document.body.style.height = parseInt(document.body.style.height)+20; |
| 59 | cpObjAtlas = new cpaint(); | 65 | cpObjAtlas = new cpaint(); |
| @@ -79,7 +85,10 @@ function iniciaAtlas() | @@ -79,7 +85,10 @@ function iniciaAtlas() | ||
| 79 | if (retorno.data.tipoguias == "combo") | 85 | if (retorno.data.tipoguias == "combo") |
| 80 | { | 86 | { |
| 81 | pai.style.textAlign="left" | 87 | pai.style.textAlign="left" |
| 82 | - ins = "Escolha a prancha: <select onchange='abrePrancha(this.value)'>" | 88 | + ins = "Escolha a prancha: <select onchange='abrePrancha(this.value)' "; |
| 89 | + if(combow > 0) | ||
| 90 | + {ins += "style=width:"+combow+"px ";} | ||
| 91 | + ins += ">"; | ||
| 83 | ins += "<option value=''>---</option>" | 92 | ins += "<option value=''>---</option>" |
| 84 | } | 93 | } |
| 85 | if (pai) | 94 | if (pai) |