mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
Fix project sort initialization [SCI-8756]
This commit is contained in:
parent
272baeb93e
commit
39aedd86e0
2 changed files with 4 additions and 4 deletions
|
@ -462,6 +462,7 @@ var ProjectsIndex = (function() {
|
||||||
|
|
||||||
updateProjectsToolbar();
|
updateProjectsToolbar();
|
||||||
initProjectsFilters();
|
initProjectsFilters();
|
||||||
|
initSorting();
|
||||||
|
|
||||||
// set current sort item
|
// set current sort item
|
||||||
if (projectsCurrentSort) {
|
if (projectsCurrentSort) {
|
||||||
|
@ -535,7 +536,7 @@ var ProjectsIndex = (function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function initSorting() {
|
function initSorting() {
|
||||||
$(document).on('click', '#sortMenuDropdown a', function() {
|
$('#sortMenuDropdown a').on('click', function() {
|
||||||
if (projectsCurrentSort !== $(this).data('sort')) {
|
if (projectsCurrentSort !== $(this).data('sort')) {
|
||||||
$('#sortMenuDropdown a').removeClass('selected');
|
$('#sortMenuDropdown a').removeClass('selected');
|
||||||
projectsCurrentSort = $(this).data('sort');
|
projectsCurrentSort = $(this).data('sort');
|
||||||
|
@ -708,7 +709,6 @@ var ProjectsIndex = (function() {
|
||||||
initEditButton();
|
initEditButton();
|
||||||
initMoveButton();
|
initMoveButton();
|
||||||
initProjectsViewModeSwitch();
|
initProjectsViewModeSwitch();
|
||||||
initSorting();
|
|
||||||
initSelectAllCheckbox();
|
initSelectAllCheckbox();
|
||||||
initArchiveRestoreButton();
|
initArchiveRestoreButton();
|
||||||
loadCardsView();
|
loadCardsView();
|
||||||
|
|
|
@ -124,8 +124,8 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function(e) {
|
||||||
viewContainer.html('Error loading project list');
|
viewContainer.html('Error loading experiment list');
|
||||||
},
|
},
|
||||||
complete: function() {
|
complete: function() {
|
||||||
updateSelectAllCheckbox();
|
updateSelectAllCheckbox();
|
||||||
|
|
Loading…
Add table
Reference in a new issue