const td = $(`
<td data-store-id="${storeId}">
<div style="display: flex; align-items: center;">
- <input type="number" class="btn btn-primary input"
+ <input type="number" class="btn btn-primary input "
value="${val.quantity}"
data-id="${val.id}"
data-guid="${item.product_id}"
data-bs-toggle="tooltip" data-bs-placement="top"
data-original-value="${val.quantity}"
style="width: 100%; padding: .375rem .75rem; font-size: 1rem; line-height: 1.5; border-radius: .375rem; border: 1px solid #0d6efd;">
- <button class="reject-btn" style="border: none; background: transparent; cursor: pointer; margin-left: 5px;">
+ <button class="reject-btn" style="border: none; background: transparent; cursor: pointer;">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M20 11v5a1 1 0 0 1-2 0v-4H7.414l1.293 1.293a1 1 0 0 1-1.414 1.414l-3-3a1 1 0 0 1 0-1.416l3-3a1 1 0 1 1 1.414 1.416L7.414 10H19a1 1 0 0 1 1 1z"
fill="grey" stroke="none"/>
$('.btn-apply').on('click', function () {
applyStoreFilter();
- if ($('#week').val() && $('#year').val()) {
- $('.table-wrapper').css({
- 'pointer-events': 'auto',
- 'opacity': '1'
- });
- $('.flash-message').css({
- 'display': 'none'
- });
- }
$('tr.inserted-row').remove();
});
$('.btn-reset').on('click', resetStoreFilter);
return startMonth;
}
return startMonth;
-}
-
-
-$(document).ready(function () {
- if ($('#week').val().length > 0) {
- $('#edit-button').click();
- }
-
- const flashMessage = $('.flash-message');
-
- if (flashMessage.length) {
- const delayTime = flashMessage.hasClass('alert-success') ? 5000 : 15000;
- setTimeout(() => flashMessage.fadeOut(2000, () => flashMessage.remove()), delayTime);
- }
-});
\ No newline at end of file
+}
\ No newline at end of file