projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e07a141
)
Updating form scrolling to top.
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 25 Jul 2019 20:51:57 +0000
(16:51 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 25 Jul 2019 20:51:57 +0000
(16:51 -0400)
Use position to get correct placement of form
views/ui/f6/form-start.html
patch
|
blob
|
history
diff --git
a/views/ui/f6/form-start.html
b/views/ui/f6/form-start.html
index
a917c5f
..
72b07b5
100644
(file)
--- a/
views/ui/f6/form-start.html
+++ b/
views/ui/f6/form-start.html
@@
-29,7
+29,7
@@
jQuery(document).ready(function($){
$(document).on( 'forminvalid.zf.abide', function( ev, frm ) {
console.log( 'forminvalid' );
- $("html, body").animate({ scrollTop: $('#validateMessage{if !empty($ui.validateID)}_{$ui.validateID}{/if}').
offset().top
}, 500);
+ $("html, body").animate({ scrollTop: $('#validateMessage{if !empty($ui.validateID)}_{$ui.validateID}{/if}').
position().top -10
}, 500);
});
});
</script>