Jump back to top when changing pagination page. Fixes #1948

This commit is contained in:
Bas Stottelaar
2014-10-20 22:13:59 +02:00
parent bea7022b4c
commit 8a8821530a
10 changed files with 162 additions and 147 deletions
+5 -1
View File
@@ -107,7 +107,11 @@
"sSearch" : ""},
"iDisplayLength": 25,
"sPaginationType": "full_numbers",
"aaSorting": []
"aaSorting": [],
"fnDrawCallback": function (o) {
// Jump to top of page
$('html,body').scrollTop(0);
}
});
$('#searchresults_table').on("draw.dt", function () {
getArt();