mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-07-28 12:04:23 +00:00
Optimise scrolling -> Delete heavy useless JS
(cherry picked from commit 029fcbf470)
This commit is contained in:
parent
c3183d564f
commit
242b2ca09b
1 changed files with 0 additions and 12 deletions
12
js/core.js
12
js/core.js
|
|
@ -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'));
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue