Skip to content

Commit

Permalink
length
Browse files Browse the repository at this point in the history
  • Loading branch information
JesperDramsch committed Oct 11, 2023
1 parent 42d97d6 commit 60a3fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function update_filtering(data) {
calendar_data['dataSource'] = conf_list; // need to update only this
calendar = new Calendar("#calendar-page", calendar_data);

if (data.subs.length === 0 || data.subs == data.all_subs) {
if (data.subs.length === 0 || data.subs.length == data.all_subs.length) {
window.history.pushState('', '', page_url);
} else {
// Join the selected values into a query parameter
Expand Down
2 changes: 1 addition & 1 deletion _includes/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function update_filtering(data) {
$('.' + s + '-conf').show();
}

if (data.subs.length === 0 || data.subs == data.all_subs) {
if (data.subs.length === 0 || data.subs.length == data.all_subs.length) {
window.history.pushState('', '', page_url);
} else {
// Join the selected values into a query parameter
Expand Down

0 comments on commit 60a3fbc

Please sign in to comment.