style(warenkorb-neu): Knopf 'Mengen aktualisieren' raus, getippte Menge speichert bei Feldwechsel
This commit is contained in:
@@ -101,7 +101,6 @@
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
<button type="button" id="update_cart" class="wk-btn wk-btn-ghost">Mengen aktualisieren</button>
|
||||
<div class="wk-trust wk-muted">Sichere Zahlung · Versand aus Deutschland</div>
|
||||
</div>
|
||||
</aside>
|
||||
@@ -235,7 +234,8 @@ $(document).ready(function() {
|
||||
var y = sessionStorage.getItem('wk_scroll');
|
||||
if (y !== null) { sessionStorage.removeItem('wk_scroll'); window.scrollTo(0, parseInt(y) || 0); }
|
||||
} catch (e) {}
|
||||
$('#update_cart').click(function(e) { e.preventDefault(); absenden(''); });
|
||||
// Getippte Menge: beim Verlassen des Feldes speichern (kein extra Knopf mehr)
|
||||
$('.input_quantity').change(function() { absenden(''); });
|
||||
$('#cashdesk_button').click(function(e) { e.preventDefault(); absenden('kasse'); });
|
||||
$('.express_start').click(function(e) { e.preventDefault(); absenden('express:' + $(this).data('module')); });
|
||||
$('.item_delete').click(function(e) { e.preventDefault(); $('.input_quantity', $(this).closest('.wk-row')).val(0); absenden(''); });
|
||||
|
||||
Reference in New Issue
Block a user