| Index: pages/jobs.tmpl |
| =================================================================== |
| --- a/pages/jobs.tmpl |
| +++ b/pages/jobs.tmpl |
| @@ -15,8 +15,8 @@ |
| activate: function(event, ui) |
| { |
| var hash = ui.newTab.find("a")[0].hash; |
| - if (hash != "#jobs-overview") |
| - location.hash = hash; |
| + if ((hash != "#jobs-overview" ? hash : "") != document.location.hash) |
| + history.pushState(null, null, hash); |
| } |
| }) |
| ).addClass("ui-tabs-nav-vertical"); |
| @@ -29,6 +29,8 @@ |
| var escapedHash = hash.replace(/\+/g, "\\+"); |
| jQuery("[href=" + escapedHash + "]").click(); |
| }); |
| + |
| + setTimeout(function() { window.scrollTo(0, 0); }, 0); |
| }); |
| </script> |