Skip to content

Commit

Permalink
MINOR Fixed remaining references to jsparty/ directory in CSS and PHP…
Browse files Browse the repository at this point in the history
… files

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92750 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Nov 21, 2009
1 parent cfcaa54 commit d0d676b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 26 deletions.
6 changes: 3 additions & 3 deletions code/AssetAdmin.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ function init() {
Requirements::customScript(<<<JS Requirements::customScript(<<<JS
_TREE_ICONS = {}; _TREE_ICONS = {};
_TREE_ICONS['Folder'] = { _TREE_ICONS['Folder'] = {
fileIcon: 'jsparty/tree/images/page-closedfolder.gif', fileIcon: 'sapphire/javascript/tree/images/page-closedfolder.gif',
openFolderIcon: 'jsparty/tree/images/page-openfolder.gif', openFolderIcon: 'sapphire/javascript/tree/images/page-openfolder.gif',
closedFolderIcon: 'jsparty/tree/images/page-closedfolder.gif' closedFolderIcon: 'sapphire/javascript/tree/images/page-closedfolder.gif'
}; };
JS JS
); );
Expand Down
21 changes: 4 additions & 17 deletions code/LeftAndMain.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -249,11 +249,10 @@ function init() {
'sapphire/javascript/prototype_improvements.js', 'sapphire/javascript/prototype_improvements.js',
'sapphire/thirdparty/jquery/jquery.js', 'sapphire/thirdparty/jquery/jquery.js',
'sapphire/thirdparty/jquery-livequery/jquery.livequery.js', 'sapphire/thirdparty/jquery-livequery/jquery.livequery.js',
'jsparty/jquery/plugins/effen/jquery.fn.js',
'sapphire/javascript/jquery-ondemand/jquery.ondemand.js', 'sapphire/javascript/jquery-ondemand/jquery.ondemand.js',
'sapphire/javascript/jquery_improvements.js', 'sapphire/javascript/jquery_improvements.js',
'sapphire/jsparty/firebug-lite/firebug.js', 'sapphire/thirdparty/firebug-lite/firebug.js',
'sapphire/jsparty/firebug-lite/firebugx.js', 'sapphire/thirdparty/firebug-lite/firebugx.js',
'sapphire/javascript/i18n.js', 'sapphire/javascript/i18n.js',
) )
); );
Expand All @@ -267,7 +266,7 @@ function init() {
'cms/javascript/LeftAndMain.js', 'cms/javascript/LeftAndMain.js',
'cms/javascript/LeftAndMain_left.js', 'cms/javascript/LeftAndMain_left.js',
'cms/javascript/LeftAndMain_right.js', 'cms/javascript/LeftAndMain_right.js',
'jsparty/tree/tree.js', 'sapphire/javascript/tree/tree.js',
'cms/javascript/TinyMCEImageEnhancement.js', 'cms/javascript/TinyMCEImageEnhancement.js',
'cms/thirdparty/swfupload/swfupload.js', 'cms/thirdparty/swfupload/swfupload.js',
'cms/javascript/Upload.js', 'cms/javascript/Upload.js',
Expand Down Expand Up @@ -899,7 +898,6 @@ public function EditorToolbar() {
*/ */
public function CMSVersion() { public function CMSVersion() {
$sapphireVersionFile = file_get_contents('../sapphire/silverstripe_version'); $sapphireVersionFile = file_get_contents('../sapphire/silverstripe_version');
$jspartyVersionFile = file_get_contents('../jsparty/silverstripe_version');
$cmsVersionFile = file_get_contents('../cms/silverstripe_version'); $cmsVersionFile = file_get_contents('../cms/silverstripe_version');


if(strstr($sapphireVersionFile, "/sapphire/trunk")) { if(strstr($sapphireVersionFile, "/sapphire/trunk")) {
Expand All @@ -909,25 +907,14 @@ public function CMSVersion() {
$sapphireVersion = ($matches) ? $matches[1] : null; $sapphireVersion = ($matches) ? $matches[1] : null;
} }


if(strstr($jspartyVersionFile, "/jsparty/trunk")) {
$jspartyVersion = "trunk";
} else {
preg_match("/jsparty\/(?:(?:branches)|(?:tags))(?:\/rc)?\/([A-Za-z0-9._-]+)\/silverstripe_version/", $jspartyVersionFile, $matches);
$jspartyVersion = ($matches) ? $matches[1] : null;
}

if(strstr($cmsVersionFile, "/cms/trunk")) { if(strstr($cmsVersionFile, "/cms/trunk")) {
$cmsVersion = "trunk"; $cmsVersion = "trunk";
} else { } else {
preg_match("/cms\/(?:(?:branches)|(?:tags))(?:\/rc)?\/([A-Za-z0-9._-]+)\/silverstripe_version/", $cmsVersionFile, $matches); preg_match("/cms\/(?:(?:branches)|(?:tags))(?:\/rc)?\/([A-Za-z0-9._-]+)\/silverstripe_version/", $cmsVersionFile, $matches);
$cmsVersion = ($matches) ? $matches[1] : null; $cmsVersion = ($matches) ? $matches[1] : null;
} }


if($sapphireVersion == $jspartyVersion && $jspartyVersion == $cmsVersion) { return "cms: $cmsVersion, sapphire: $sapphireVersion";
return $sapphireVersion;
} else {
return "cms: $cmsVersion, sapphire: $sapphireVersion, jsparty: $jspartyVersion";
}
} }


/** /**
Expand Down
4 changes: 2 additions & 2 deletions css/cms_left.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ ul.tree span.a.children.Root span.c {
} }


ul.tree span.a.Root span.c { ul.tree span.a.Root span.c {
background: url(../../jsparty/tree/images/i-bottom.gif) no-repeat scroll 0 50%; background: url(../../sapphire/javascript/tree/images/i-bottom.gif) no-repeat scroll 0 50%;
} }


#sitetree_ul { #sitetree_ul {
Expand All @@ -346,7 +346,7 @@ ul#sitetree.tree ul {
} }
ul#sitetree.tree ul ul { ul#sitetree.tree ul ul {
padding-left: 16px; padding-left: 16px;
background: url(../../jsparty/tree/images/i-repeater.gif) repeat-y scroll 0 50%; background: url(../../sapphire/javascript/tree/images/i-repeater.gif) repeat-y scroll 0 50%;
} }




Expand Down
2 changes: 1 addition & 1 deletion css/silverstripe.tabs.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* the jQuery theme format * the jQuery theme format
* *
* @todo move generic tab styles into this file * @todo move generic tab styles into this file
* @todo add to silverstripe specific branch of /jsparty/jquery/ui/themes * @todo add to silverstripe specific branch of /sapphire/thirdparty/jquery-ui-themes
*/ */


/* Caution! Ensure accessibility in print and other media types... */ /* Caution! Ensure accessibility in print and other media types... */
Expand Down
3 changes: 0 additions & 3 deletions templates/Includes/ModelAdmin_left.ss
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,3 @@
<% require javascript(jsparty/tabstrip/tabstrip.js) %>
<% require css(jsparty/tabstrip/tabstrip.css) %>

<div id="LeftPane"> <div id="LeftPane">
<div id="SearchForm_holder" class="leftbottom"> <div id="SearchForm_holder" class="leftbottom">
<% if SearchClassSelector = tabs %> <% if SearchClassSelector = tabs %>
Expand Down

0 comments on commit d0d676b

Please sign in to comment.