From 80ee7a17ad45ac8224bf71d59f014e7b9483bff6 Mon Sep 17 00:00:00 2001 From: Nicolas Petton Date: Thu, 20 Aug 2009 00:19:43 +0000 Subject: [PATCH] Not using the iFrame hack for making the back button work with IE anymore --- Public/javascripts/iliad.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Public/javascripts/iliad.js b/Public/javascripts/iliad.js index b0608fc..86de7de 100644 --- a/Public/javascripts/iliad.js +++ b/Public/javascripts/iliad.js @@ -43,7 +43,6 @@ var iliad = function() { * -------------------------------------------------------------- */ var hash = ""; - var iFrameHash = null; var actionsLocked = false; @@ -141,29 +140,12 @@ var iliad = function() { var setHash = function(hashString) { hash = hashString; window.location.hash = hash; - //IE is different, as usual.... - if(jQuery.browser.msie && parseInt(jQuery.browser.version) < 8) { - fixHistoryForIE(); - } }; var getHash = function() { return window.location.hash.substr(1); }; - //Special hack for IE < 8. - //Else IE won't add an entry to the history - var fixHistoryForIE = function() { - if(!iFrameHash) { - iFrameHash = - jQuery("").prependTo("body")[0]; - } - //Add history entry - iFrameHash.contentWindow.document.open(); - iFrameHash.contentWindow.document.close(); - iFrameHash.contentWindow.document.location.hash = hash; - }; /* --- * Page updates