From 2209a55afc1dd6666759ce929ef062070260cbef Mon Sep 17 00:00:00 2001 From: akhoury Date: Wed, 26 Feb 2014 23:34:03 -0500 Subject: [PATCH] - changes per PR conversation --- public/src/ajaxify.js | 1 + public/src/forum/topic.js | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 03ea7f1a1d..8681ceec1b 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -125,6 +125,7 @@ var ajaxify = {}; if (!renderedWidgets.length) { $('body [no-widget-class]').each(function() { var $this = $(this); + $this.removeClass(); $this.addClass($this.attr('no-widget-class')); }); } diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index d92e5ba58f..5c59f20ffa 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -1034,11 +1034,6 @@ define(['composer', 'forum/pagination'], function(composer, pagination) { history.replaceState({ url: window.location.pathname.slice(1) + '#' + el.attr('data-pid') }, null, newUrl); - } else { - // this is very slugish on IE8/9, it causes the browser to adjust its scroll on its own, - // it can be fixed, but too much work for a very little return just so ie8/9 users can have the hash updated - // commenting it out, sorry - // location.hash = '#' + el.attr('data-pid'); } currentUrl = newUrl; }