mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Fixed CMS Editor loading in AssetAdmin
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@97638 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b7d466c992
commit
07547cc5dc
@ -11,7 +11,7 @@
|
|||||||
/**
|
/**
|
||||||
* On page refresh load the initial images (in root)
|
* On page refresh load the initial images (in root)
|
||||||
*/
|
*/
|
||||||
if($("#FolderImages").length > 0) loadImages();
|
if($("#FolderImages").length > 0 && $("body.CMSMain").length > 0) loadImages();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show / Hide the Upload Form
|
* Show / Hide the Upload Form
|
||||||
@ -55,7 +55,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function loadImages(sel) {
|
function loadImages() {
|
||||||
$.get('admin/EditorToolbar/ImageForm', {
|
$.get('admin/EditorToolbar/ImageForm', {
|
||||||
action_callfieldmethod: "1",
|
action_callfieldmethod: "1",
|
||||||
fieldName: "FolderImages",
|
fieldName: "FolderImages",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user