Skip to content
Snippets Groups Projects
Commit 22f3c99b authored by Shiva SIVANESARAJAH's avatar Shiva SIVANESARAJAH
Browse files

Folder icon is now changed if an empty folder has new subfolders

parent 46e73410
No related branches found
No related tags found
2 merge requests!127Release/2.3,!126Release/2.3
......@@ -248,6 +248,12 @@
.children('b').html($('<i/>')).addClass('fa fa-folder-o')
.text(" " +folder.name);
var folderElement = $("#" + folder.parentFolderId );
if(folderElement.length && folderElement.find('span > b:first').hasClass('fa-folder-o')) {
folderElement.find('span > b:first').addClass('fa-folder').removeClass('fa-folder-o');
}
return node;
},
......
......@@ -17,7 +17,8 @@ var BootstrapTree = {
.find('.fa:first')
.each(function() {
$(this).addClass($(this).data('closed-icon'));
})
$(this).next().find("i").addClass("fa-folder").removeClass("fa-folder-o");
});
$('.parent_li').find(' > ul > li').hide();
......
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