mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Removing operating system limitations for Flash Player checks which determine showing/hiding of upload button (which currently requires exactly FP9 in our version of SWFUpload). See #3679 and #3023 for followup tickets.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@78256 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0ca7341b04
commit
85901eeba7
@ -14,9 +14,7 @@ CMSMain_upload.prototype = {
|
||||
if(pv.major < 9) return;
|
||||
|
||||
// Due to a bug in the flash plugin on Linux and Mac, we need at least version 9.0.64 to use SWFUpload
|
||||
if(navigator.appVersion.indexOf("Mac") != -1 || navigator.appVersion.indexOf("X11") != -1 || navigator.appVersion.indexOf("Linux") != -1) {
|
||||
if(pv.major == 9 && pv.minor == 0 && pv.rev < 64) return;
|
||||
}
|
||||
|
||||
// If those 2 checks pass, we can provide upload capabilities to the user
|
||||
this.iframe = window.top.document.getElementById('AssetAdmin_upload');
|
||||
|
@ -123,7 +123,6 @@ TinyMCEImageEnhancement.prototype = {
|
||||
// Due to a bug in the flash plugin on Linux and Mac,
|
||||
//we need at least version 9.0.64 to use SWFUpload
|
||||
// see http://open.silverstripe.com/ticket/3023
|
||||
if(navigator.appVersion.indexOf("Mac") != -1 || navigator.appVersion.indexOf("X11") != -1 || navigator.appVersion.indexOf("Linux") != -1) {
|
||||
pv = getFlashPlayerVersion();
|
||||
if(pv.major < 9 || pv.major > 9 || (pv.major == 9 && pv.minor == 0 && pv.rev < 64)) {
|
||||
if($('AddFolderGroup')) $('AddFolderGroup').style.display = 'none';
|
||||
@ -131,7 +130,6 @@ TinyMCEImageEnhancement.prototype = {
|
||||
if($('UploadGroup')) $('UploadGroup').style.display = 'none';
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if($('FolderID') != null) {
|
||||
if($('SecurityID')) var securityid=$('SecurityID').value;
|
||||
|
Loading…
Reference in New Issue
Block a user