Skip to content
This repository
Browse code

BUGFIX: fixing random changing of access tab radio buttons when refre…

…shing the CMS with a URL such as /admin#Root_Access in Firefox.
  • Loading branch information...
commit af0bf453b24356b7f5bea251ce1f467f2f961427 1 parent a2464a5
Julian Seidenberg authored August 31, 2011

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. 7  javascript/LeftAndMain.js
7  javascript/LeftAndMain.js
@@ -7,6 +7,13 @@ if(typeof(jQuery) != 'undefined') {
7 7
 		$(document).ready(function() {
8 8
 			window.onresize(true);
9 9
 		});
  10
+
  11
+		//Turn off autocomplete to fix the access tab randomly switching radio buttons in Firefox when refresh the page
  12
+		// with an anchor tag in the URL. E.g: /admin#Root_Access
  13
+		//Autocomplete in the CMS also causes strangeness in other browsers, so this turns it off for all browsers.
  14
+		//see the following for demo and explanation of the Firefox bug:
  15
+		//  http://www.ryancramer.com/journal/entries/radio_buttons_firefox/
  16
+		$("#Form_EditForm").attr("autocomplete", "off");
10 17
 	})(jQuery);
11 18
 }
12 19
 

0 notes on commit af0bf45

Please sign in to comment.
Something went wrong with that request. Please try again.