Merge branch 'dev_fix_state' of https://github.com/szporwolik/wavelog into dev_fix_state

This commit is contained in:
Szymon Porwolik
2025-11-21 11:40:45 +01:00

View File

@@ -1364,6 +1364,21 @@ $(document).ready(function () {
// Fix State button handler
$('#fixState').click(function (event) {
const id_list = getSelectedIds();
if (id_list.length === 0) {
BootstrapDialog.alert({
title: lang_gen_advanced_logbook_info,
message: lang_gen_advanced_logbook_select_row_state,
type: BootstrapDialog.TYPE_INFO,
closable: false,
draggable: false,
callback: function (result) {
}
});
return;
}
$.ajax({
url: base_url + 'index.php/logbookadvanced/stateDialog',
type: 'post',
@@ -1382,18 +1397,6 @@ $(document).ready(function () {
action: function (dialogItself) {
const id_list = getSelectedIds();
// Check if any rows are selected
if (id_list.length === 0) {
BootstrapDialog.alert({
title: lang_gen_advanced_logbook_info,
message: lang_gen_advanced_logbook_select_row_state,
type: BootstrapDialog.TYPE_INFO,
closable: false,
draggable: false
});
return;
}
if (inStateFixing) {
return;
}