mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 19:53:19 +08:00
Remove double load of current task on dashboard page [SCI-8642] (#5597)
This commit is contained in:
parent
272de72231
commit
2afe589657
2 changed files with 0 additions and 7 deletions
|
@ -118,7 +118,6 @@ var DasboardCurrentTasksWidget = (function() {
|
|||
}
|
||||
appendTasksList(result, '.current-tasks-list-wrapper');
|
||||
PerfectSb().update_all();
|
||||
if (newList) InfiniteScroll.resetScroll('.current-tasks-list-wrapper');
|
||||
|
||||
InfiniteScroll.init('.current-tasks-list-wrapper', {
|
||||
url: $currentTasksList.data('tasksListUrl'),
|
||||
|
|
|
@ -125,12 +125,6 @@ var InfiniteScroll = (function() {
|
|||
removeScroll(object);
|
||||
initScroll(object, config);
|
||||
},
|
||||
resetScroll: (object) => {
|
||||
$(object).data('next-page', $(object).data('config').loadFirstPage ? 1 : 2).removeClass('last-page');
|
||||
if (scrollNotVisible($(object))) {
|
||||
loadData($(object), $(object).data('next-page'));
|
||||
}
|
||||
},
|
||||
removeScroll: (object) => {
|
||||
removeScroll(object);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue