mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +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() {
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user