Browse Source

Finalisation edition produit

develop
Fab 3 years ago
parent
commit
f098daf30d
2 changed files with 4 additions and 4 deletions
  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 View File



SovWidgets.setDateRange(); SovWidgets.setDateRange();


SovTools.log('ncihe');
$('.btn-confirm-js, .action-confirm').click(function () { $('.btn-confirm-js, .action-confirm').click(function () {
return confirm('Êtes-vous sûr de vouloir réaliser cette action ?'); return confirm('Êtes-vous sûr de vouloir réaliser cette action ?');
}); });
$('[data-toggle="tooltip"]').tooltip(); $('[data-toggle="tooltip"]').tooltip();


/* Select2 */ /* 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')) { if (!$(this).hasClass('disable-select2')) {
SovWidgets.setSelect2($(elm)); SovWidgets.setSelect2($(elm));
} }

+ 1
- 1
Resources/assets/functions/prices.js View File



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


static applyReductionAmount(price, amount) static applyReductionAmount(price, amount)

Loading…
Cancel
Save