mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 14:54:38 +08:00
Merge pull request #2387 from okriuchykhin/ok_SCI_4319
Fix sidebar current project expanding [SCI-4319]
This commit is contained in:
commit
edaf7adbbb
2 changed files with 3 additions and 3 deletions
|
@ -164,4 +164,4 @@
|
|||
// init
|
||||
loadDropdownSystemNotifications();
|
||||
loadUnseenNotificationsNumber('system-notifications', '.fa-gift');
|
||||
})();
|
||||
}());
|
||||
|
|
|
@ -158,13 +158,13 @@
|
|||
.addClass('fas fa-caret-right expanded');
|
||||
|
||||
// Add IDs to all parent <lis>
|
||||
var i = 0;
|
||||
let i = 0;
|
||||
_.each($('[data-parent="candidate"]'), function(el) {
|
||||
$(el).attr('data-toggle-id', i += 1);
|
||||
});
|
||||
|
||||
// Get the current project
|
||||
var project = $('[data-project-id]').data('projectId');
|
||||
let project = $('[data-current-project]').data('currentProject');
|
||||
|
||||
// Set number of elements
|
||||
sessionExpandSidebarElement(
|
||||
|
|
Loading…
Reference in a new issue