Fixed bug #3448485 - Firefox favicon frameset regression
This commit is contained in:
@@ -31,12 +31,23 @@ function setURLHash(hash) {
|
||||
}
|
||||
if (hash_init_done) {
|
||||
window.location.hash = "PMAURL:" + hash;
|
||||
fix_favicon();
|
||||
} else {
|
||||
hash_to_set = "PMAURL:" + hash;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Fix favicon disappearing in Firefox when setting location.hash
|
||||
// See bug #3448485
|
||||
function fix_favicon() {
|
||||
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
|
||||
$('head > link[href=\\.\\/favicon\\.ico]').appendTo('head');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler for changing url according to the hash part, which is updated
|
||||
* on each page to allow bookmarks.
|
||||
@@ -55,6 +66,7 @@ $(document).ready(function(){
|
||||
if (hash_to_set != "") {
|
||||
window.location.hash = hash_to_set;
|
||||
hash_to_set = "";
|
||||
fix_favicon();
|
||||
}
|
||||
/* Indicate that we're done (and we are not going to change location */
|
||||
hash_init_done = 1;
|
||||
|
Reference in New Issue
Block a user