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,8 +203,11 @@ $(function () {
|
|||||||
var mediaItems = data.mediaItems;
|
var mediaItems = data.mediaItems;
|
||||||
var mediaItemsFolderPath = data.folderPath;
|
var mediaItemsFolderPath = data.folderPath;
|
||||||
|
|
||||||
if (mediaItemsFolderPath !== self.displayed()) {
|
// When searching on "Recent" folder self.displayed() is null and mediaItemsFolderPath is a empty string.
|
||||||
return;
|
if (!(mediaItemsFolderPath == '' && self.displayed() == null)) {
|
||||||
|
if (mediaItemsFolderPath !== self.displayed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self.mediaItemsCount = data.mediaItemsCount;
|
self.mediaItemsCount = data.mediaItemsCount;
|
||||||
|
|||||||
Reference in New Issue
Block a user