mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +08:00
Fixed search function when searching inside the "Recent" folder. (#8568)
This commit is contained in:
committed by
GitHub
parent
520dc06b46
commit
64fad63e02
@@ -203,9 +203,12 @@ $(function () {
|
||||
var mediaItems = data.mediaItems;
|
||||
var mediaItemsFolderPath = data.folderPath;
|
||||
|
||||
// When searching on "Recent" folder self.displayed() is null and mediaItemsFolderPath is a empty string.
|
||||
if (!(mediaItemsFolderPath == '' && self.displayed() == null)) {
|
||||
if (mediaItemsFolderPath !== self.displayed()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
self.mediaItemsCount = data.mediaItemsCount;
|
||||
for (var i = 0; i < mediaItems.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user