Skip to content

Commit e5257f4

Browse files
committed
Added Scroll Up for header errors 📜
1 parent 58142a8 commit e5257f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎tmpl/default.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@
142142
setTimeout(function () {
143143
$('#jdscf-message-<?php echo $module->id; ?>').html('');
144144
}, 3000);
145+
146+
$('html, body').animate({
147+
scrollTop: $('#simple-contact-form-<?php echo $module->id; ?>').offset().top - 150
148+
}, 300);
145149
}
146150
$('#simple-contact-form-<?php echo $module->id; ?>').on('submit', function (e) {
147151
e.preventDefault();

0 commit comments

Comments
 (0)