mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: image search was not honouring the selected folder, so could only search in root folder
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@106086 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9bf0b7a6ba
commit
5b3ef295d9
@ -34,9 +34,11 @@ ThumbnailStripField.prototype = {
|
|||||||
|
|
||||||
timeout = setTimeout(function() {
|
timeout = setTimeout(function() {
|
||||||
var searchText = searchField.value;
|
var searchText = searchField.value;
|
||||||
|
var folderID = null;
|
||||||
$('Flash').ajaxGetFiles(null, searchText);
|
if (parentField && parentField.inputTag)
|
||||||
$('FolderImages').ajaxGetFiles(null, searchText);
|
folderID = parentField.inputTag.value
|
||||||
|
$('Flash').ajaxGetFiles(folderID, searchText);
|
||||||
|
$('FolderImages').ajaxGetFiles(folderID, searchText);
|
||||||
}, 500);
|
}, 500);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user