Files
prestashop/admin_o2w/themes/new-theme/public/employee.bundle.js

1 line
1.4 KiB
JavaScript
Raw Normal View History

(()=>{"use strict";const{$:n}=window;class o{constructor(o){this.id=o,this.$container=n(`#${this.id}`)}getContainer(){return this.$container}addExtension(n){n.extend(this)}}const{$:e}=window;class t{extend(n){const o=n.getContainer();o.on("click",".js-remove-helper-block",(n=>{o.remove();const t=e(n.target),s=t.data("closeUrl"),i=t.data("cardName");s&&e.post(s,{close:1,name:i})}))}}const{$:s}=window;s((()=>{const n=new window.prestashop.component.Grid("employee");n.addExtension(new window.prestashop.component.GridExtensions.ReloadListExtension),n.addExtension(new window.prestashop.component.GridExtensions.ExportToSqlManagerExtension),n.addExtension(new window.prestashop.component.GridExtensions.FiltersResetExtension),n.addExtension(new window.prestashop.component.GridExtensions.SortingExtension),n.addExtension(new window.prestashop.component.GridExtensions.BulkActionCheckboxExtension),n.addExtension(new window.prestashop.component.GridExtensions.SubmitBulkActionExtension),n.addExtension(new window.prestashop.component.GridExtensions.SubmitRowActionExtension),n.addExtension(new window.prestashop.component.GridExtensions.ColumnTogglingExtension),n.addExtension(new window.prestashop.component.GridExtensions.FiltersSubmitButtonEnablerExtension),n.addExtension(new window.prestashop.component.GridExtensions.LinkRowActionExtension);new o("employeesShowcaseCard").addExtension(new t)})),window.employee={}})();