fix(kasse-neu): Fehlerbox ohne .prop('hidden') (jQuery 1.6)
This commit is contained in:
@@ -535,12 +535,12 @@ $(document).ready(function() {
|
|||||||
if (!$('#agreements_accepted').is(':checked')) { $('#ck-agree').addClass('ck-invalid'); fehler.push('Zustimmung zu AGB und Widerruf'); }
|
if (!$('#agreements_accepted').is(':checked')) { $('#ck-agree').addClass('ck-invalid'); fehler.push('Zustimmung zu AGB und Widerruf'); }
|
||||||
var $box = $('#ck-client-errors');
|
var $box = $('#ck-client-errors');
|
||||||
if (fehler.length) {
|
if (fehler.length) {
|
||||||
$box.html('<strong>Bitte noch ausfüllen:</strong> ' + fehler.join(', ')).prop('hidden', false);
|
$box.html('<strong>Bitte noch ausfüllen:</strong> ' + fehler.join(', ')).removeAttr('hidden').show();
|
||||||
var $first = $('.ck .ck-invalid').first();
|
var $first = $('.ck .ck-invalid').first();
|
||||||
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 }
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
$box.prop('hidden', true);
|
$box.attr('hidden', 'hidden').hide();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$('#send_order_button').click(function(e) {
|
$('#send_order_button').click(function(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user