BUGFIX: image search was not honouring the selected folder, so could only search in root folder (from r106086)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112486 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 02:35:26 +00:00
parent 376e7bf3b0
commit e6e4c7afd5

View File

@ -41,9 +41,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);
});
}