Skip to content

Commit

Permalink
Merge pull request #1778 from publishpress/update/#1766-Enable-Revisi…
Browse files Browse the repository at this point in the history
…ons-automatically

update/#1766-Enable-Revisions-automatically
  • Loading branch information
olatechpro authored Oct 9, 2024
2 parents e3c5bf1 + 2f8122f commit 9885910
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions modules/calendar/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ public function update_user_filters($request_filter = [])
'weeks' => '',
'start_date' => '',
'me_mode' => '',
'show_revision' => '',
'hide_revision' => '',
's' => '',
'post_status' => '',
];
Expand Down Expand Up @@ -761,7 +761,7 @@ public function update_user_filters($request_filter = [])
'weeks' => __('Weeks', 'publishpress'),
'start_date' => __('Start Date', 'publishpress'),
'me_mode' => __('Me Mode', 'publishpress'),
'show_revision' => __('Show Revision', 'publishpress'),
'hide_revision' => __('Show Revision', 'publishpress'),
's' => __('Search', 'publishpress'),
], $this->filters);

Expand Down
8 changes: 4 additions & 4 deletions modules/calendar/lib/async-calendar/js/AsyncCalendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@ export default function AsyncCalendar(props) {
let new_value = '';

if (event.target.classList.contains('active-filter')) {
new_value = 0;
new_value = 1;
event.target.classList.remove('active-filter');
} else {
new_value = 1;
new_value = 0;
event.target.classList.add('active-filter');
}

onFilterEventCallback('show_revision', new_value);
onFilterEventCallback('hide_revision', new_value);

document.querySelector('#pp-content-filters #pp_show_revision_input').value = new_value;
document.querySelector('#pp-content-filters #pp_hide_revision_input').value = new_value;
};

const onSearchClick = (event) => {
Expand Down
2 changes: 1 addition & 1 deletion modules/calendar/lib/async-calendar/js/index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/content-board/content-board.php
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ public function update_user_filters()
'start_date' => $this->filter_get_param('start_date'),
'end_date' => $this->filter_get_param('end_date'),
'me_mode' => $this->filter_get_param('me_mode'),
'show_revision' => $this->filter_get_param('show_revision'),
'hide_revision' => $this->filter_get_param('hide_revision'),
];

$editorial_metadata = $this->terms_options;
Expand Down
2 changes: 1 addition & 1 deletion modules/content-overview/content-overview.php
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ public function update_user_filters()
'start_date' => $this->filter_get_param('start_date'),
'end_date' => $this->filter_get_param('end_date'),
'me_mode' => $this->filter_get_param('me_mode'),
'show_revision' => $this->filter_get_param('show_revision'),
'hide_revision' => $this->filter_get_param('hide_revision'),
];

$editorial_metadata = $this->terms_options;
Expand Down

0 comments on commit 9885910

Please sign in to comment.