Allow to unfavorite all files

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-12-05 09:39:32 +01:00 committed by Backportbot
parent b307d32ed1
commit 806a067bfb
1 changed files with 1 additions and 2 deletions

View File

@ -69,7 +69,7 @@
apppath=appfolder.substring(1, appfolder.length);
}
$(listULElements).find('[data-dir="' + apppath + '"]').remove();
$(listULElements).find('[data-dir="' + _.escape(apppath) + '"]').remove();
if (listULElements.childElementCount === 0) {
var collapsibleButton = $(listULElements).parent().find('button.collapse');
@ -98,7 +98,6 @@
apppath = appfolder.substring(1, appfolder.length);
}
var url = OC.generateUrl('/apps/files/?dir=' + apppath + '&view=files');
var innerTagA = document.createElement('A');
innerTagA.setAttribute("href", url);