Renamed function to fit camel case methods naming.

This commit is contained in:
PHP Faber 2013-03-30 12:44:02 +02:00
parent fa07815838
commit ed11f037d8

View File

@ -672,8 +672,7 @@ AJAX.setUrlHash = (function (jQuery, window) {
var userChange = true;
// Fix favicon disappearing in Firefox when setting location.hash
// See bug #3448485
function fix_favicon() {
function resetFavicon() {
if (jQuery.browser.mozilla) {
// Move the link tags for the favicon to the bottom
// of the head element to force a reload of the favicon
@ -698,7 +697,7 @@ AJAX.setUrlHash = (function (jQuery, window) {
userChange = false;
if (ready) {
window.location.hash = "PMAURL-" + index + ":" + hash;
fix_favicon();
resetFavicon();
} else {
savedHash = "PMAURL-" + index + ":" + hash;
}
@ -720,7 +719,7 @@ AJAX.setUrlHash = (function (jQuery, window) {
if (savedHash != "") {
window.location.hash = savedHash;
savedHash = "";
fix_favicon();
resetFavicon();
}
// Indicate that we're done initialising
ready = true;