Unverified Commit 658f38b0 authored by M. Parvazi's avatar M. Parvazi Committed by GitHub
Browse files

Update calendar.js

parent 94c32152
......@@ -402,9 +402,9 @@ $(document).ready(() => {
});
$('#compare-options').change(function () {
if (this.value == 1) setPreviousPeriod();
if (this.value === '1') setPreviousPeriod();
if (this.value == 2) setPreviousYear();
if (this.value === '2') setPreviousYear();
datepickerStart.setStartCompare($('#date-start-compare').val());
datepickerStart.setEndCompare($('#date-end-compare').val());
......@@ -413,7 +413,7 @@ $(document).ready(() => {
datepickerStart.setCompare(true);
datepickerEnd.setCompare(true);
if (this.value == 3) $('#date-start-compare').focus();
if (this.value === '3') $('#date-start-compare').focus();
});
if ($('#datepicker-compare').attr('checked')) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment