Commit ff76483d8730bae268e09a923df09cb4dbdad8dd
1 parent
b6c83ac6
Exists in
master
and in
7 other branches
Diálogo para definir a senha de conexão com o banco
Showing
1 changed file
with
9 additions
and
2 deletions
Show diff stats
admin/js/editormapfile.js
| @@ -930,10 +930,17 @@ function selConexaoBanco(eleValue){ | @@ -930,10 +930,17 @@ function selConexaoBanco(eleValue){ | ||
| 930 | textos = [], | 930 | textos = [], |
| 931 | selecionados = [], | 931 | selecionados = [], |
| 932 | funcaoFinal = function(){ | 932 | funcaoFinal = function(){ |
| 933 | - alert("Complete com o valor da senha de acesso em 'password', exemplo: password=postgres"); | 933 | + var c,m = prompt("Senha de acesso ao banco", ""); |
| 934 | + if (m != null) { | ||
| 935 | + c = $i(eleValue); | ||
| 936 | + c.value = c.value.replace("******",m); | ||
| 937 | + } | ||
| 938 | + else{ | ||
| 939 | + alert("Complete com o valor da senha de acesso em 'password', exemplo: password=postgres"); | ||
| 940 | + } | ||
| 934 | }; | 941 | }; |
| 935 | for(i=0;i<n;i++){ | 942 | for(i=0;i<n;i++){ |
| 936 | - temp = "password= user="+dados[i].usuario+" dbname="+dados[i].bancodedados+" host="+dados[i].host+" port="+dados[i].porta; | 943 | + temp = "password=****** user="+dados[i].usuario+" dbname="+dados[i].bancodedados+" host="+dados[i].host+" port="+dados[i].porta; |
| 937 | textos.push(dados[i].bancodedados); | 944 | textos.push(dados[i].bancodedados); |
| 938 | valores.push(temp); | 945 | valores.push(temp); |
| 939 | } | 946 | } |