Commit e2776cf4 authored by Marius Cramer's avatar Marius Cramer
Browse files

Scroll to page top on content load

parent 67ef2d60
......@@ -584,7 +584,7 @@ $(document).on("change", function(event) {
});
$(document).on('click', 'a[data-load-content],button[data-load-content]', function(e) {
e.preventDefault();
//e.preventDefault();
var content_to_load = $(this).attr('data-load-content');
if(!content_to_load) return this;
......@@ -592,7 +592,7 @@ $(document).on('click', 'a[data-load-content],button[data-load-content]', functi
});
$(document).on('click', 'a[data-capp],button[data-capp]', function(e) {
e.preventDefault();
//e.preventDefault();
var content_to_load = $(this).attr('data-capp');
if(!content_to_load) return this;
......@@ -600,7 +600,7 @@ $(document).on('click', 'a[data-capp],button[data-capp]', function(e) {
});
$(document).on('click', 'a[data-submit-form],button[data-submit-form]', function(e) {
e.preventDefault();
//e.preventDefault();
var $el = $(this);
var act = $el.attr('data-form-action');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment