update
This commit is contained in:
@@ -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);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user