mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Update paths in AssetAdmin.php
This commit is contained in:
parent
0a2456e71e
commit
31e7832875
@ -68,17 +68,6 @@ class AssetAdmin extends LeftAndMain implements PermissionProvider{
|
||||
Requirements::javascript(CMS_DIR . '/javascript/CMSMain.GridField.js');
|
||||
Requirements::add_i18n_javascript(CMS_DIR . '/javascript/lang', false, true);
|
||||
Requirements::css(CMS_DIR . "/css/screen.css");
|
||||
$frameworkDir = FRAMEWORK_DIR;
|
||||
Requirements::customScript(<<<JS
|
||||
_TREE_ICONS = {};
|
||||
_TREE_ICONS['Folder'] = {
|
||||
fileIcon: '$frameworkDir/javascript/tree/images/page-closedfolder.gif',
|
||||
openFolderIcon: '$frameworkDir/javascript/tree/images/page-openfolder.gif',
|
||||
closedFolderIcon: '$frameworkDir/javascript/tree/images/page-closedfolder.gif'
|
||||
};
|
||||
JS
|
||||
);
|
||||
|
||||
CMSBatchActionHandler::register('delete', 'AssetAdmin_DeleteBatchAction', 'Folder');
|
||||
}
|
||||
|
||||
@ -147,7 +136,7 @@ JS
|
||||
}
|
||||
|
||||
public function getEditForm($id = null, $fields = null) {
|
||||
Requirements::javascript(FRAMEWORK_DIR . '/javascript/AssetUploadField.js');
|
||||
Requirements::javascript(FRAMEWORK_DIR . '/javascript/dist/AssetUploadField.js');
|
||||
Requirements::css(FRAMEWORK_DIR . '/css/AssetUploadField.css');
|
||||
|
||||
$form = parent::getEditForm($id, $fields);
|
||||
|
Loading…
Reference in New Issue
Block a user