Allow to unfavorite all files (#18241)

Allow to unfavorite all files
This commit is contained in:
John Molakvoæ 2019-12-05 11:33:44 +01:00 committed by GitHub
commit fe79665f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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');
@ -99,7 +99,6 @@
}
var url = OC.generateUrl('/apps/files/?dir=' + apppath + '&view=files');
var innerTagA = document.createElement('A');
innerTagA.setAttribute("href", url);
innerTagA.setAttribute("class", "nav-icon-files svg");