Fix feed link for pushState loaded history page
This commit is contained in:
parent
51ade94113
commit
6b236ec95b
5 changed files with 19 additions and 4 deletions
|
@ -42,10 +42,22 @@
|
|||
clearTimeout(loaderTimeout);
|
||||
$('#flash').empty();
|
||||
$('#sidebar_loader').hide();
|
||||
$('#sidebar_content').html(xhr.responseText);
|
||||
|
||||
var content = $(xhr.responseText);
|
||||
|
||||
if (xhr.getResponseHeader('X-Page-Title')) {
|
||||
document.title = xhr.getResponseHeader('X-Page-Title');
|
||||
}
|
||||
|
||||
$('head')
|
||||
.find('link[type="application/atom+xml"]')
|
||||
.remove();
|
||||
|
||||
$('head')
|
||||
.append(content.filter('link[type="application/atom+xml"]'));
|
||||
|
||||
$('#sidebar_content').html(content.not('link[type="application/atom+xml"]'));
|
||||
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue