modified logic for user option user_quicklog_enter
这个提交包含在:
父节点
a2c4a8e743
当前提交
1d52ac5120
共有 1 个文件被更改,包括 17 次插入 和 5 次删除
|
|
@ -241,12 +241,24 @@
|
||||||
}
|
}
|
||||||
form.submit();
|
form.submit();
|
||||||
}
|
}
|
||||||
function handleKeyPress(event) {
|
|
||||||
if (event.key === 'Enter') {
|
|
||||||
submitForm('qso'); // Treat Enter key press as clicking the 'quicksearch-log' button
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
<?php if ($this->session->userdata('user_quicklog_enter') == 1) { ?>
|
||||||
|
<script>
|
||||||
|
function handleKeyPress(event) {
|
||||||
|
if (event.key === 'Enter') {
|
||||||
|
submitForm('search'); // Treat Enter key press as clicking the 'quicksearch-search' button
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<?php } else { ?>
|
||||||
|
<script>
|
||||||
|
function handleKeyPress(event) {
|
||||||
|
if (event.key === 'Enter') {
|
||||||
|
submitForm('qso'); // Treat Enter key press as clicking the 'quicksearch-log' button
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<?php } ?>
|
||||||
<form id="quicklog-form" class="form-inline">
|
<form id="quicklog-form" class="form-inline">
|
||||||
<input class="form-control mr-sm-2" id="nav-bar-search-input" type="search" name="callsign" placeholder="<?php echo lang('menu_search_text_quicklog'); ?>" aria-label="Search" onkeypress="handleKeyPress(event)">
|
<input class="form-control mr-sm-2" id="nav-bar-search-input" type="search" name="callsign" placeholder="<?php echo lang('menu_search_text_quicklog'); ?>" aria-label="Search" onkeypress="handleKeyPress(event)">
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用