PATH:
home
/
lab2454c
/
crypto.keyreum.com
/
platform
/
plugins
/
ecommerce
/
resources
/
assets
/
js
class ShipmentManagement { init() { $(document).on('click', '.shipment-actions .applist-menu a', event => { event.preventDefault(); let _self = $(event.currentTarget); $('#confirm-change-shipment-status-button').data('target', _self.data('target')).data('status', _self.data('value')); let $modal = $('#confirm-change-status-modal'); $modal.find('.shipment-status-label').text(_self.text().toLowerCase()); $modal.modal('show'); }); $(document).on('click', '#confirm-change-shipment-status-button', event => { event.preventDefault(); let _self = $(event.currentTarget); _self.addClass('button-loading'); $.ajax({ type: 'POST', cache: false, url: _self.data('target'), data: { status: _self.data('status') }, success: res => { if (!res.error) { Botble.showSuccess(res.message); $('.max-width-1200').load(window.location.href + ' .max-width-1200 > *', () => { $('#confirm-change-status-modal').modal('hide'); _self.removeClass('button-loading'); }); } else { Botble.showError(res.message); _self.removeClass('button-loading'); } }, error: res => { Botble.handleError(res); _self.removeClass('button-loading'); } }); }); } } $(document).ready(() => { new ShipmentManagement().init(); });
[-] customer.js
[edit]
[-] bulk-import.js
[edit]
[-] order-create.js
[edit]
[-] ecommerce-product-attributes.js
[edit]
[+]
..
[-] discount.js
[edit]
[-] order-incomplete.js
[edit]
[+]
components
[-] utilities.js
[edit]
[-] shipment.js
[edit]
[-] product-category.js
[edit]
[-] avatar.js
[edit]
[-] review.js
[edit]
[-] setting.js
[edit]
[-] cropper.js
[edit]
[-] change-product-swatches.js
[edit]
[-] dashboard-widgets.js
[edit]
[-] order.js
[edit]
[-] edit-product.js
[edit]
[-] flash-sale.js
[edit]
[-] currencies.js
[edit]
[+]
front
[-] payment-method.js
[edit]
[-] store-locator.js
[edit]
[-] shipping.js
[edit]
[-] report-filter.js
[edit]
[-] report.js
[edit]