This commit is contained in:
FGU 2023-02-20 16:24:46 +01:00
parent 32547e495f
commit e5cd68a4ad
2 changed files with 9 additions and 2 deletions

View file

@ -226,10 +226,14 @@ $(function() {
$('a[data-decrease_tolerance]').on('touchclick', function() {
decreaseTolerance($(this).data('decrease_tolerance'));
});
$('a[data-reorder_previous]').on('touchclick', function() {
console.log('reorder_previous');
update($(this).data('reorder_previous'), $(this).data('quantity'), $(this).data('tolerance'));
});
$('a[data-confirm_switch_order]').on('touchclick', function() {
return (!modified || confirm(I18n.t('js.ordering.confirm_change')));
});
updateButtons($(document));
});
});