【タグ発行キュー処理、履歴表示】メッセージ出し方修正
All checks were successful
Deploy main / deploy (push) Successful in 23s

This commit is contained in:
你的名字 2025-10-12 17:57:19 +09:00
parent 835e2b4165
commit 50b1cb31a6

View File

@ -208,10 +208,19 @@
function handlePrintLabels() { function handlePrintLabels() {
var checkboxes = document.querySelectorAll('input[name="ids[]"]:checked'); var checkboxes = document.querySelectorAll('input[name="ids[]"]:checked');
if (checkboxes.length === 0) { if (checkboxes.length === 0) {
alert('1件以上選択してください。'); $.alert({
title: '選択エラー',
content: '1件以上選択してください。'
});
return; return;
} }
if (confirm('タグ発送用宛名を印刷してよろしいですか?')) { $.confirm({
title: '確認',
content: 'タグ発送用宛名を印刷してよろしいですか?',
buttons: {
はい: {
btnClass: 'btn-primary',
action: function () {
var form = document.createElement('form'); var form = document.createElement('form');
form.method = 'POST'; form.method = 'POST';
form.action = '/tagissue/print-unissued-labels'; form.action = '/tagissue/print-unissued-labels';
@ -232,6 +241,10 @@
form.submit(); form.submit();
document.body.removeChild(form); document.body.removeChild(form);
} }
},
いいえ: function () {}
}
});
} }
// ステータス変更処理 // ステータス変更処理