#1484 - Cannot upload files

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44601 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-11-11 23:01:17 +00:00
parent 0269aa224d
commit 2088a0ffc5
2 changed files with 18 additions and 8 deletions

View File

@ -46,10 +46,16 @@ class AssetAdmin extends LeftAndMain {
Requirements::javascript("cms/javascript/AssetAdmin_left.js");
Requirements::javascript("cms/javascript/AssetAdmin_right.js");
Requirements::javascript("cms/javascript/CMSMain_upload.js");
Requirements::javascript("cms/javascript/Upload.js");
Requirements::javascript("sapphire/javascript/Security_login.js");
Requirements::javascript("jsparty/SWFUpload/SWFUpload.js");
// We don't want SWFUpload on linux, since it doesn't work
$browscap = new Browscap();
$hitdata = $browscap->getBrowser(null, true);
if(!($hitdata['Platform'] && stristr($hitdata['Platform'], 'linux'))) {
Requirements::javascript("cms/javascript/CMSMain_upload.js");
Requirements::javascript("cms/javascript/Upload.js");
Requirements::javascript("jsparty/SWFUpload/SWFUpload.js");
}
// Include the right JS]
// Hayden: This didn't appear to be used at all

View File

@ -76,9 +76,6 @@ abstract class LeftAndMain extends Controller {
Requirements::javascript('jsparty/tabstrip/tabstrip.js');
Requirements::css('jsparty/tabstrip/tabstrip.css');
Requirements::css('cms/css/TinyMCEImageEnhancement.css');
Requirements::javascript('cms/javascript/TinyMCEImageEnhancement.js');
Requirements::javascript('cms/javascript/LeftAndMain.js');
Requirements::javascript('cms/javascript/LeftAndMain_left.js');
Requirements::javascript('cms/javascript/LeftAndMain_right.js');
@ -125,8 +122,15 @@ abstract class LeftAndMain extends Controller {
Requirements::javascript('sapphire/javascript/SelectionGroup.js');
Requirements::css('sapphire/css/SelectionGroup.css');
Requirements::javascript('jsparty/SWFUpload/SWFUpload.js');
Requirements::javascript('cms/javascript/Upload.js');
// We don't want SWFUpload on linux, since it doesn't work
$browscap = new Browscap();
$hitdata = $browscap->getBrowser(null, true);
if(!($hitdata['Platform'] && stristr($hitdata['Platform'], 'linux'))) {
Requirements::css('cms/css/TinyMCEImageEnhancement.css');
Requirements::javascript('cms/javascript/TinyMCEImageEnhancement.js');
Requirements::javascript('jsparty/SWFUpload/SWFUpload.js');
Requirements::javascript('cms/javascript/Upload.js');
}
Requirements::themedCSS('typography');