Skip to content

Commit 8e74b23

Browse files
authored
Merge pull request #18248 from nextcloud/backport/18241/stable16
[stable16] Allow to unfavorite all files
2 parents 436cb02 + 806a067 commit 8e74b23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/files/js/tagsplugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
apppath=appfolder.substring(1, appfolder.length);
7070
}
7171

72-
$(listULElements).find('[data-dir="' + apppath + '"]').remove();
72+
$(listULElements).find('[data-dir="' + _.escape(apppath) + '"]').remove();
7373

7474
if (listULElements.childElementCount === 0) {
7575
var collapsibleButton = $(listULElements).parent().find('button.collapse');
@@ -98,7 +98,6 @@
9898
apppath = appfolder.substring(1, appfolder.length);
9999
}
100100
var url = OC.generateUrl('/apps/files/?dir=' + apppath + '&view=files');
101-
102101

103102
var innerTagA = document.createElement('A');
104103
innerTagA.setAttribute("href", url);

0 commit comments

Comments
 (0)