Commit 68924435da8a24f6db23db60d7bed84398a9616c
1 parent
70026000
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
16 additions
and
16 deletions
Show diff stats
classesjs/classe_coordenadas.js
| ... | ... | @@ -344,20 +344,20 @@ i3GEO.coordenadas = { |
| 344 | 344 | {string} - html com a tabela |
| 345 | 345 | */ |
| 346 | 346 | criaMascaraDMS: function(prefixo,titulo,caixa){ |
| 347 | - var ins = "<table id="+prefixo+" style=display:block;text-align:center ><tr style='border-bottom:2px solid white' >" + | |
| 348 | - "<td style=width:120px;text-align:right >"+titulo+" X: </td>" + | |
| 349 | - "<td>"+$inputText("","315",prefixo+"xg","grau","3","-00")+" </td>" + | |
| 350 | - "<td>"+$inputText("","",prefixo+"xm","minuto","3","00")+" </td>" + | |
| 351 | - "<td>"+$inputText("","",prefixo+"xs","segundo","5","00.00")+" </td>" + | |
| 352 | - "<td>Y:"+$inputText("","",prefixo+"yg","grau","3","-00")+" </td>" + | |
| 353 | - "<td>"+$inputText("","",prefixo+"ym","minuto","3","00")+" </td>" + | |
| 354 | - "<td>"+$inputText("","",prefixo+"ys","segundo","5","00.00")+"</td>", | |
| 355 | - temp = 'var '+prefixo+'xxx = i3GEO.calculo.dms2dd($i("'+prefixo+'xg").value,$i("'+prefixo+'xm").value,$i("'+prefixo+'xs").value);' + | |
| 356 | - 'var '+prefixo+'yyy = i3GEO.calculo.dms2dd($i("'+prefixo+'yg").value,$i("'+prefixo+'ym").value,$i("'+prefixo+'ys").value);' + | |
| 347 | + var ins = '<table id='+prefixo+' style=display:block;text-align:center ><tr style="border-bottom:2px solid white" >' + | |
| 348 | + '<td style=width:120px;text-align:right >'+titulo+' X: </td>' + | |
| 349 | + '<td>'+$inputText('','315',prefixo+'xg','grau','3','-00')+' </td>' + | |
| 350 | + '<td>'+$inputText('','',prefixo+'xm','minuto','3','00')+' </td>' + | |
| 351 | + '<td>'+$inputText('','',prefixo+'xs','segundo','5','00.00')+' </td>' + | |
| 352 | + '<td>Y:'+$inputText('','',prefixo+'yg','grau','3','-00')+' </td>' + | |
| 353 | + '<td>'+$inputText('','',prefixo+'ym','minuto','3','00')+' </td>' + | |
| 354 | + '<td>'+$inputText('','',prefixo+'ys','segundo','5','00.00')+'</td>', | |
| 355 | + temp = 'var '+prefixo+'xxx = i3GEO.calculo.dms2dd($i(\''+prefixo+'xg\').value,$i(\''+prefixo+'xm\').value,$i(\''+prefixo+'xs\').value);' + | |
| 356 | + 'var '+prefixo+'yyy = i3GEO.calculo.dms2dd($i(\''+prefixo+'yg\').value,$i(\''+prefixo+'ym\').value,$i(\''+prefixo+'ys\').value);' + | |
| 357 | 357 | 'i3GEO.navega.zoomponto(i3GEO.configura.locaplic,i3GEO.configura.sid,'+prefixo+'xxx,'+prefixo+'yyy);'; |
| 358 | - ins += '<td><img class=tic title=zoom onclick="'+temp+'" src="'+i3GEO.util.$im("branco.gif")+'" /></td>' + | |
| 359 | - "<td>"+caixa+"<td>" + | |
| 360 | - "</tr></table>"; | |
| 358 | + ins += '<td><img class=tic title=zoom onclick="'+temp+'" src="'+i3GEO.util.$im("branco.gif")+'" /></td>' + | |
| 359 | + "<td>"+caixa+"</td>" + | |
| 360 | + "</tr></table>"; | |
| 361 | 361 | return ins; |
| 362 | 362 | }, |
| 363 | 363 | /* |
| ... | ... | @@ -567,7 +567,7 @@ i3GEO.coordenadas = { |
| 567 | 567 | // |
| 568 | 568 | //cria a caixa de seleção |
| 569 | 569 | // |
| 570 | - for(i=0;i<n;i++){ | |
| 570 | + for(i=0;i<n;i += 1){ | |
| 571 | 571 | temp = this.config[tipos[i]]; |
| 572 | 572 | if(temp.ativo === true){ |
| 573 | 573 | caixa += "<option value='"+tipos[i]+"'>"+temp.titulo+"</option>"; |
| ... | ... | @@ -576,7 +576,7 @@ i3GEO.coordenadas = { |
| 576 | 576 | caixa += "</select>"; |
| 577 | 577 | if(this.formato !== "bloco") |
| 578 | 578 | {caixa = "";} |
| 579 | - for(i=0;i<n;i++){ | |
| 579 | + for(i=0;i<n;i += 1){ | |
| 580 | 580 | temp = this.config[tipos[i]]; |
| 581 | 581 | if(temp.ativo === true){ |
| 582 | 582 | if(temp.tipo === "geo"){ |
| ... | ... | @@ -630,7 +630,7 @@ i3GEO.coordenadas = { |
| 630 | 630 | if(temp && temp.style.display === "block") |
| 631 | 631 | {i3GEO.coordenadas.atualizaGeo(x,y,id);} |
| 632 | 632 | }; |
| 633 | - for(i=0;i<n;i++){ | |
| 633 | + for(i=0;i<n;i += 1){ | |
| 634 | 634 | temp = i3GEO.coordenadas.config[tipos[i]]; |
| 635 | 635 | if(temp.ativo === true){ |
| 636 | 636 | if(temp.tipo === "geo"){ | ... | ... |