Skip to content

Commit

Permalink
events: replace open end checkbox with selection box
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Oct 11, 2023
1 parent 494aaf4 commit 3a2af43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,11 @@
<input id="events_todate" type="text" size="12">
</div>
<div class="event_control">
<p>INCLUDE OPEN END EVENTS</p>
<input id="events_openend" checked="true" type="checkbox">
<p>OPEN END EVENTS</p>
<select name="events_openend" id="events_openend">
<option value="include">INCLUDE</option>
<option value="exclude">EXCLUDE</option>
</select>
</div>
<div class="event_control">
<p>DATA PROVIDER</p>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/view-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
let where_params = [];
if (state.category)
where_params.push(`evcategory.eq.${state.category}`);
if (!_openEnd.checked)
if (_openEnd.value == 'exclude')
where_params.push(`evend.neq.null`);
if (where_params.length == 0) {
api_url += "?limit=-1"
Expand Down

0 comments on commit 3a2af43

Please sign in to comment.