Merge pull request #2387 from okriuchykhin/ok_SCI_4319

Fix sidebar current project expanding [SCI-4319]
This commit is contained in:
Alex Kriuchykhin 2020-02-07 13:55:15 +01:00 committed by GitHub
commit edaf7adbbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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(