Skip to content
Snippets Groups Projects
Commit 242b2ca0 authored by Olivier PEREZ's avatar Olivier PEREZ
Browse files

Optimise scrolling -> Delete heavy useless JS

(cherry picked from commit 029fcbf4)
parent c3183d56
No related branches found
No related tags found
No related merge requests found
......@@ -164,15 +164,3 @@ $(document).ready(function() {
}
});
});
// Vote form moving to the top or to the bottom
$(window).scroll(function() {
var $table_offset = $('.results thead').offset();
if(($table_offset == undefined || $(window).scrollTop() > $table_offset.top+150) && ($('table.results').height()-150 > $(window).height())) {
$('#addition').before($('#vote-form'));
$('#tableContainer').after($('.scroll-buttons'));
} else {
$('.results tbody').prepend($('#vote-form'));
$('#tableContainer').before($('.scroll-buttons'));
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment