From af0bf453b24356b7f5bea251ce1f467f2f961427 Mon Sep 17 00:00:00 2001 From: Julian Seidenberg Date: Wed, 31 Aug 2011 10:31:33 +1200 Subject: [PATCH] BUGFIX: fixing random changing of access tab radio buttons when refreshing the CMS with a URL such as /admin#Root_Access in Firefox. --- javascript/LeftAndMain.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index 35d700cd..778c63b4 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -7,6 +7,13 @@ if(typeof(jQuery) != 'undefined') { $(document).ready(function() { window.onresize(true); }); + + //Turn off autocomplete to fix the access tab randomly switching radio buttons in Firefox when refresh the page + // with an anchor tag in the URL. E.g: /admin#Root_Access + //Autocomplete in the CMS also causes strangeness in other browsers, so this turns it off for all browsers. + //see the following for demo and explanation of the Firefox bug: + // http://www.ryancramer.com/journal/entries/radio_buttons_firefox/ + $("#Form_EditForm").attr("autocomplete", "off"); })(jQuery); }