Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
export default {
forwardCustomerThreadModal: '#forwardThreadModal',
forwardSomeoneElseEmailInput: '#forward_customer_thread_someone_else_email',
forwardEmployeeInput: '#forward_customer_thread_employee_id',
};

View File

@@ -0,0 +1,22 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
$(() => {
const grid = new window.prestashop.component.Grid('customer_thread');
grid.addExtension(new window.prestashop.component.GridExtensions.FiltersResetExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.ReloadListExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.ExportToSqlManagerExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.SortingExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.LinkRowActionExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.SubmitGridActionExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.SubmitBulkActionExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.BulkActionCheckboxExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.FiltersSubmitButtonEnablerExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.ColumnTogglingExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.SubmitRowActionExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.ChoiceExtension());
grid.addExtension(new window.prestashop.component.GridExtensions.PositionExtension(grid));
});

View File

@@ -0,0 +1,27 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
import CustomerThreadViewPageMap from './customer-thread-view-page-map';
const {$} = window;
$(() => {
$(CustomerThreadViewPageMap.forwardEmployeeInput).on('change', (event) => {
const $someoneElseEmailInput = $(
CustomerThreadViewPageMap.forwardSomeoneElseEmailInput,
);
const $someElseEmailFormGroup = $someoneElseEmailInput.closest(
'.form-group',
);
const employeeId = $(event.currentTarget).val();
if (parseInt(<string>employeeId, 10) === 0) {
$someElseEmailFormGroup.removeClass('d-none');
} else {
$someElseEmailFormGroup.addClass('d-none');
}
});
});