mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Set focus to edit box after preview
SVN revision: 1813
This commit is contained in:
parent
c56d6db639
commit
a9d7e0c761
@ -160,7 +160,6 @@ function elKeyPress(evt)
|
|||||||
document.form1.jcmd.value = "Submit";
|
document.form1.jcmd.value = "Submit";
|
||||||
chkform();
|
chkform();
|
||||||
cond_submit();
|
cond_submit();
|
||||||
document.form1.Text.focus();
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9212,7 +9212,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
rsprintf("</head>\n");
|
rsprintf("</head>\n");
|
||||||
|
|
||||||
script[0] = 0;
|
script[0] = 0;
|
||||||
if (isparam("inlineatt") && *getparam("inlineatt"))
|
if (isparam("inlineatt") && *getparam("inlineatt") || bpreview)
|
||||||
strcpy(script, " OnLoad=\"document.form1.Text.focus();\"");
|
strcpy(script, " OnLoad=\"document.form1.Text.focus();\"");
|
||||||
|
|
||||||
strcat(script, " OnLoad=\"elKeyInit();\" OnFocus=\"elKeyInit();\"");
|
strcat(script, " OnLoad=\"elKeyInit();\" OnFocus=\"elKeyInit();\"");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user