| | |
| | | |
| | | $(document).on('click', 'a[data-load-content],button[data-load-content]', function(e) { |
| | | e.preventDefault(); |
| | | $('html, body').animate({scrollTop: $('#pageContent').offset().top}, 1000); |
| | | $('html, body').animate({scrollTop: 0}, 1000); |
| | | |
| | | var content_to_load = $(this).attr('data-load-content'); |
| | | if(!content_to_load) return this; |
| | |
| | | |
| | | $(document).on('click', 'a[data-capp],button[data-capp]', function(e) { |
| | | e.preventDefault(); |
| | | $('html, body').animate({scrollTop: $('#pageContent').offset().top}, 1000); |
| | | $('html, body').animate({scrollTop: 0}, 1000); |
| | | |
| | | var content_to_load = $(this).attr('data-capp'); |
| | | if(!content_to_load) return this; |
| | |
| | | |
| | | $(document).on('click', 'a[data-submit-form],button[data-submit-form]', function(e) { |
| | | e.preventDefault(); |
| | | $('html, body').animate({scrollTop: $('#pageContent').offset().top}, 1000); |
| | | $('html, body').animate({scrollTop: 0}, 1000); |
| | | |
| | | var $el = $(this); |
| | | var act = $el.attr('data-form-action'); |