delete now removes a folder from the quickaccess recursively
This commit is contained in:
parent
aae191f15f
commit
2d5e86dcdb
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue