Skip to content

Commit

Permalink
End date can be the same as start date
Browse files Browse the repository at this point in the history
Fixes #326
  • Loading branch information
arp242 committed Jul 2, 2020
1 parent aba3b1d commit a4537f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/script_backend.js
Expand Up @@ -318,7 +318,7 @@
// Setup datepicker fields.
var setup_datepicker = function() {
$('#dash-form').on('submit', function(e) {
if (get_date($('#period-start').val()) < get_date($('#period-end').val()))
if (get_date($('#period-start').val()) <= get_date($('#period-end').val()))
return

e.preventDefault()
Expand Down

0 comments on commit a4537f9

Please sign in to comment.