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