mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #24 from candidasa/2.4
BUGFIX: fixing random changing of access tab radio buttons when refreshing the CMS
This commit is contained in:
commit
5cd1b523ea
@ -7,6 +7,13 @@ if(typeof(jQuery) != 'undefined') {
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
window.onresize(true);
|
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);
|
})(jQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user