Skip to content
Snippets Groups Projects
Commit 363c05b2 authored by pabois's avatar pabois
Browse files

codeclimate

parent 0eb617db
No related branches found
No related tags found
No related merge requests found
...@@ -38,9 +38,11 @@ window.osuny.treeView = { ...@@ -38,9 +38,11 @@ window.osuny.treeView = {
parentId = to.dataset.id; parentId = to.dataset.id;
// manage emptyness // manage emptyness
$(to).closest('.js-treeview-element').removeClass('treeview__element--empty'); $(to).closest('.js-treeview-element')
.removeClass('treeview__element--empty');
if ($('> .js-treeview-element', from).length === 0) { if ($('> .js-treeview-element', from).length === 0) {
$(from).closest('.js-treeview-element').addClass('treeview__element--empty'); $(from).closest('.js-treeview-element')
.addClass('treeview__element--empty');
} }
// call to application // call to application
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment