Przeglądaj źródła

Finalisation edition produit

develop
Fab 3 lat temu
rodzic
commit
f098daf30d
2 zmienionych plików z 4 dodań i 4 usunięć
  1. +3
    -3
      Resources/assets/app/adminlte/main/init.js
  2. +1
    -1
      Resources/assets/functions/prices.js

+ 3
- 3
Resources/assets/app/adminlte/main/init.js Wyświetl plik

@@ -5,7 +5,6 @@ window.addEventListener('load', (event) => {

SovWidgets.setDateRange();

SovTools.log('ncihe');
$('.btn-confirm-js, .action-confirm').click(function () {
return confirm('Êtes-vous sûr de vouloir réaliser cette action ?');
});
@@ -14,9 +13,10 @@ window.addEventListener('load', (event) => {
$('[data-toggle="tooltip"]').tooltip();

/* Select2 */
if ($('.select2, select.form-control').length) {
if ($('.form-select, .select2, select.form-control').length) {

$('form .form-widget>select.form-control, .select2').each(function (i, elm) {

$('form .form-widget>select.form-control, .select2, .form-select').each(function (i, elm) {
if (!$(this).hasClass('disable-select2')) {
SovWidgets.setSelect2($(elm));
}

+ 1
- 1
Resources/assets/functions/prices.js Wyświetl plik

@@ -19,7 +19,7 @@ export class SovPrices {

static applyReductionPercent(price, percentage)
{
return applyPercent(price, -percentage);
return this.applyPercent(price, -percentage);
}

static applyReductionAmount(price, amount)

Ładowanie…
Anuluj
Zapisz