Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes and enhancements #889

Closed
wants to merge 12 commits into from
5 changes: 4 additions & 1 deletion public/js/selfoss-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ var selfoss = {
return d; // ensure any chained function runs
}

if (selfoss.lastUpdate == null)
selfoss.lastUpdate = new Date(0);

return $.ajax({
url: 'items/sync',
type: 'GET',
Expand All @@ -261,7 +264,7 @@ var selfoss = {
since: selfoss.lastUpdate.toISOString(),
tags: true,
sources: selfoss.filter.sourcesNav,
items_statuses: true
items_statuses: selfoss.lastUpdate !== null
Copy link
Member

@jtojnar jtojnar Mar 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won’t this now always be true, since there is line 256?

},
success: function(data) {
selfoss.lastSync = Date.now();
Expand Down
2 changes: 2 additions & 0 deletions public/js/selfoss-events-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ selfoss.events.navigation = function() {
selfoss.filter.type='starred';

selfoss.events.reloadSamePath = true;
if (selfoss.events.lastSubsection == null)
selfoss.events.lastSubsection = 'all';
selfoss.events.setHash(selfoss.filter.type, 'same');

$('#nav-filter > li').removeClass('active');
Expand Down