Fix sidebar current project expanding [SCI-4319]

This commit is contained in:
Oleksii Kriuchykhin 2020-02-05 21:29:12 +01:00
parent 49bfb603c8
commit b7455f6b85
2 changed files with 3 additions and 3 deletions

View file

@ -164,4 +164,4 @@
// init
loadDropdownSystemNotifications();
loadUnseenNotificationsNumber('system-notifications', '.fa-gift');
})();
}());

View file

@ -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(