Skip to content

Commit

Permalink
hide the calendar user filter for now until we can make it more usable
Browse files Browse the repository at this point in the history
  • Loading branch information
nkorbel committed Aug 5, 2020
1 parent 24a10fa commit a7fadfa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions Web/scripts/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ function Calendar(opts) {
elements.moveErrorDialog.modal('hide');
});

const ownerFilter = $("#ownerFilter");
const participantFilter = $("#participantFilter");


function selectOwner(ui, textbox) {
textbox.val(ui.item.label);
Expand All @@ -212,11 +211,14 @@ function Calendar(opts) {
_fullCalendar.fullCalendar('refetchEvents');
}

if (ownerFilter.length != 0) {
const ownerFilter = $("#ownerFilter");
const participantFilter = $("#participantFilter");

if (ownerFilter.length !== 0) {
ownerFilter.userAutoComplete(opts.autocompleteUrl, selectOwner);
}

if (participantFilter.length != 0) {
if (participantFilter.length !== 0) {
participantFilter.userAutoComplete(opts.autocompleteUrl, selectParticipant);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Config/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Configuration implements IConfiguration
const DEFAULT_CONFIG_ID = 'booked';
const DEFAULT_CONFIG_FILE_PATH = 'config/config.php';

const VERSION = '2.8.3';
const VERSION = '2.8.4';

protected function __construct()
{
Expand Down
2 changes: 1 addition & 1 deletion tpl/Calendar/calendar.filter.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
</div>


{if $CanViewUsers}
{if false}
<div class="col-xs-12">
<div class="form-group inline">
<label for="ownerFilter">{translate key=Owner}</label>
Expand Down

0 comments on commit a7fadfa

Please sign in to comment.