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:
Mark Stephens 2010-06-02 22:17:53 +00:00 committed by Sam Minnee
parent 9bf0b7a6ba
commit 5b3ef295d9
1 changed files with 5 additions and 3 deletions

View File

@ -34,9 +34,11 @@ ThumbnailStripField.prototype = {
timeout = setTimeout(function() {
var searchText = searchField.value;
$('Flash').ajaxGetFiles(null, searchText);
$('FolderImages').ajaxGetFiles(null, searchText);
var folderID = null;
if (parentField && parentField.inputTag)
folderID = parentField.inputTag.value
$('Flash').ajaxGetFiles(folderID, searchText);
$('FolderImages').ajaxGetFiles(folderID, searchText);
}, 500);
});
}