From 092e207c7bf7bae754fa9bf54ad9dec22ec681de Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 27 Jan 2009 01:24:45 +0000 Subject: [PATCH] BUGFIX Disabled inline "create folder" and "upload" for anything but Flash Player 9 - versions below have general compatibily issues, versions above (Flash Player 10) have new security restrictions around file dialogues which require an SWFUpload upgrade (see #3023) ENHANCEMENT Allowing setting of foldername in AssetAdmin->addfolder() to simplify the inline "create folder" logic (doesn't need to send of a fake ajax form-save from CMS into /admin/assets just to save the folder name) (see #3412) ENHANCEMENT Removed BrowserDetect javascript library which was randomly placed in Security_login.js and just included in AssetAdmin. Reverted to regex-matching for simple browser detection for now BUGFIX Fixed "cancel" button for inline "create folder" functionality (was not stopping event in IE7) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70775 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/Security_login.js | 127 ----------------------------------- 1 file changed, 127 deletions(-) diff --git a/javascript/Security_login.js b/javascript/Security_login.js index 9e44e0887..e69de29bb 100755 --- a/javascript/Security_login.js +++ b/javascript/Security_login.js @@ -1,127 +0,0 @@ -/** - * @author Tim Copeland - */ -// Browser detection - -var BrowserDetect = { - init: function () { - this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; - this.version = this.searchVersion(navigator.userAgent) - || this.searchVersion(navigator.appVersion) - || "an unknown version"; - this.OS = this.searchString(this.dataOS) || "an unknown OS"; - }, - searchString: function (data) { - for (var i=0;i= 1.5*/ || - (BrowserDetect.browser == "Explorer" && BrowserDetect.version >= 6) || - (BrowserDetect.browser == "Mozilla" && BrowserDetect.version >= 1.2) - ) { - - $("noSupport").style.display = "none" - $("supported").style.display = "block" - - } - - //center the all holder - $("all").style.left = (document.body.offsetWidth /2) - ( $("all").offsetWidth /2) -2 + "px" - } - }, - - '#LoginForm_LoginForm_action_login' : { - onclick: function() { - document.body.style.backgroundColor = "white"; - // Effect.Puff("all"); - return true; - } - } -}) \ No newline at end of file