fix(kasse-neu): jQuery-1.6-kompatibel (.submit statt .on, kein .addBack) -- .on() brach die Init ab, Lieferadresse klappte nicht mehr auf
This commit is contained in:
@@ -537,7 +537,7 @@ $(document).ready(function() {
|
||||
if (fehler.length) {
|
||||
$box.html('<strong>Bitte noch ausfüllen:</strong> ' + fehler.join(', ')).prop('hidden', false);
|
||||
var $first = $('.ck .ck-invalid').first();
|
||||
if ($first.length) { $('html, body').animate({ scrollTop: $first.offset().top - 90 }, 250); $first.find('input,select').addBack('input,select').first().focus(); }
|
||||
if ($first.length) { $('html, body').animate({ scrollTop: $first.offset().top - 90 }, 250); $first.find('input,select').add($first.filter('input,select')).first().focus(); // kein .addBack() in jQuery 1.6 }
|
||||
return false;
|
||||
}
|
||||
$box.prop('hidden', true);
|
||||
@@ -552,7 +552,7 @@ $(document).ready(function() {
|
||||
});
|
||||
// Scrollposition ueber jeden Reload retten (Zahlart, Versand, Land, Gutschein loesen ueber
|
||||
// content_cash_desk.js einen Formular-POST aus, der Browser faengt sonst oben an).
|
||||
$('#order_form').on('submit', function() {
|
||||
$('#order_form').submit(function() { // jQuery 1.6.4 im Theme: kein .on()
|
||||
if ($('#cashdesk_action').val() === 'reload') {
|
||||
try { sessionStorage.setItem('ck_scroll', String(window.scrollY || window.pageYOffset || 0)); } catch (e) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user