delete now removes a folder from the quickaccess recursively

This commit is contained in:
Felix Nüsse 2019-03-16 18:33:41 +01:00
parent aae191f15f
commit 2d5e86dcdb
No known key found for this signature in database
GPG Key ID: 2089A3431243E819
1 changed files with 8 additions and 1 deletions

View File

@ -2981,7 +2981,7 @@
},
/**
* Remove Item from Quickaccesslist
* Remove Item from Quickaccesslist, recursively remove all folders lying beneath the appfolder
*
* @param {String} appfolder folder to be removed
*/
@ -3000,6 +3000,13 @@
$(listULElements).find('[data-dir="' + apppath + '"]').remove();
$(listULElements).children().each(function(i) {
if($(this).attr('data-dir').match(appfolder+"/[\\s\\S]*")){
$(this).remove();
}
});
if (listULElements.childElementCount === 0) {
var collapsibleButton = $(listULElements).parent().find('button.collapse');
collapsibleButton.hide();