mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Removed javascript from AssetAdmin template to prevent warnings
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@66398 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f317676341
commit
f9342e562c
@ -92,6 +92,16 @@ class AssetAdmin extends LeftAndMain {
|
||||
Requirements::css(THIRDPARTY_DIR . "/greybox/greybox.css");
|
||||
|
||||
Requirements::css(CMS_DIR . "/css/AssetAdmin.css");
|
||||
|
||||
Requirements::customScript(<<<JS
|
||||
_TREE_ICONS = {};
|
||||
_TREE_ICONS['Folder'] = {
|
||||
fileIcon: 'jsparty/tree/images/page-closedfolder.gif',
|
||||
openFolderIcon: 'jsparty/tree/images/page-openfolder.gif',
|
||||
closedFolderIcon: 'jsparty/tree/images/page-closedfolder.gif'
|
||||
};
|
||||
JS
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,12 +1,3 @@
|
||||
<script>
|
||||
_TREE_ICONS = {};
|
||||
_TREE_ICONS['Folder'] = {
|
||||
fileIcon: 'jsparty/tree/images/page-closedfolder.gif',
|
||||
openFolderIcon: 'jsparty/tree/images/page-openfolder.gif',
|
||||
closedFolderIcon: 'jsparty/tree/images/page-closedfolder.gif'
|
||||
};
|
||||
</script>
|
||||
|
||||
<h2><% _t('FOLDERS','Folders') %></h2>
|
||||
<div id="treepanes" style="overflow-y: auto;">
|
||||
<ul id="TreeActions">
|
||||
|
Loading…
Reference in New Issue
Block a user