Commit 347ecb7f28ff2006dc44b530e2e587aab6f0c1ce

Authored by Edmar Moretti
1 parent dd8a5f2c

--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 51 Inicializa o Atlas.
52 52  
53 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 63 document.body.style.width = "100%";
58 64 document.body.style.height = parseInt(document.body.style.height)+20;
59 65 cpObjAtlas = new cpaint();
... ... @@ -79,7 +85,10 @@ function iniciaAtlas()
79 85 if (retorno.data.tipoguias == "combo")
80 86 {
81 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 92 ins += "<option value=''>---</option>"
84 93 }
85 94 if (pai)
... ...