Permalink
Browse files

BUGFIX: Fixed warning on AssetAdmin (merged from trunk)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@66940 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 170a0f2 commit fc1422723843ec10e54e8bb45fc2f7592061e6e4 @sminnee sminnee committed Nov 28, 2008
Showing with 10 additions and 9 deletions.
  1. +10 −0 code/AssetAdmin.php
  2. +0 −9 templates/Includes/AssetAdmin_left.ss
View
@@ -88,6 +88,16 @@ function init() {
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">

0 comments on commit fc14227

Please sign in to comment.