This commit is contained in:
2026-04-16 23:19:11 +02:00
parent 0e8f246d6f
commit 3d61d3b2df
9 changed files with 330 additions and 72 deletions

View File

@@ -995,7 +995,7 @@ foreach ($addressesList as $address) {
watchPrintQueueButton(btn);
});
// Auto-click ostatniej etykiety po utworzeniu przesylki (?printLast=1)
// Auto-click najnowszej etykiety po utworzeniu przesylki (?printLast=1)
(function autoClickLastLabel() {
if (!/[?&]printLast=1\b/.test(location.search)) return;
var attempts = 0;
@@ -1009,10 +1009,10 @@ foreach ($addressesList as $address) {
}
var buttons = document.querySelectorAll('.btn-print-label');
if (buttons.length > 0) {
var last = buttons[buttons.length - 1];
var first = buttons[0];
clearInterval(timer);
cleanupPrintLastParam();
last.click();
first.click();
}
}, 1000);
})();