mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 08:18:41 +00:00
chore: add_del_cmd_form ctrl_enter submit
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
999453e0bf
commit
a999479831
@ -282,7 +282,7 @@ if ($cur_tab == 'profile') {
|
||||
echo HTML::tag_end('tr');
|
||||
},
|
||||
[
|
||||
'page_len' => 50,
|
||||
'echo_full' => true,
|
||||
'div_classes' => ['table-responsive'],
|
||||
'table_classes' => ['table', 'align-middle'],
|
||||
'print_after_table' => function () use ($n_problems) {
|
||||
|
@ -52,7 +52,6 @@ $managers_form = newAddDelCmdForm(
|
||||
'help' => '命令格式:命令一行一个,<code>+mike</code> 表示把 <code>mike</code> 加入管理者,<code>-mike</code> 表示把 <code>mike</code> 从管理者中移除。',
|
||||
]
|
||||
);
|
||||
|
||||
$managers_form->runAtServer();
|
||||
|
||||
if (isSuperUser(Auth::user())) {
|
||||
|
@ -3,6 +3,7 @@ define('SCRIPT_REFRESH_AS_GET', '<script>;window.location = window.location.orig
|
||||
|
||||
function newAddDelCmdForm($form_name, $validate, $handle, $final = null, $cfg = []) {
|
||||
$form = new UOJForm($form_name);
|
||||
$form->config['ctrl_enter_submit'] = true;
|
||||
$form->addTextArea("{$form_name}_cmds", [
|
||||
'label' => '命令',
|
||||
'input_class' => 'form-control font-monospace',
|
||||
|
Loading…
Reference in New Issue
Block a user