Skip to content

Commit

Permalink
hotfix broadcast flatpickr - revert me
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Oct 7, 2024
1 parent 9e58849 commit 9dcc636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/bits/src/bits.flatpickr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { use24h } from 'common/i18n';
import { Options } from 'flatpickr/dist/types/options';

site.load.then(() => {
$('.flatpickr').each(function (this: HTMLInputElement) {
$('.flatpickr').each(function(this: HTMLInputElement) {
const minDate = this.dataset['minDate'];
const enableTime = !!this.dataset['enableTime'];
const local = !!this.dataset['local'];
const local = !!this.dataset['local'] || location.href.includes('/broadcast/');

const config: Options = {
minDate: minDate == 'yesterday' ? new Date(Date.now() - 1000 * 3600 * 24) : minDate,
Expand Down

0 comments on commit 9dcc636

Please sign in to comment.