Skip to content

Commit 5e66bca

Browse files
committed
after merge - autofocus to pwd
1 parent dcb941b commit 5e66bca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

phpminiadmin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ function q_next(){
354354
$('q').value=ls[LSK+qcur];
355355
}
356356
function after_load(){
357+
var p=document.DF.pwd;
358+
if (p) p.focus();
357359
qcur=lsmax();
358360
}
359361
function logoff(){
@@ -385,7 +387,7 @@ function sht(f){
385387
</script>
386388

387389
</head>
388-
<body onload="after_load();document.DF.pwd.focus();">
390+
<body onload="after_load()">
389391
<form method="post" name="DF" action="<?php echo $self?>" enctype="multipart/form-data">
390392
<input type="hidden" name="XSS" value="<?php echo $_SESSION['XSS']?>">
391393
<input type="hidden" name="refresh" value="">

0 commit comments

Comments
 (0)