diff --git a/Controls/DatePickerSetupControl.php b/Controls/DatePickerSetupControl.php index a5a22b9ee..d788990cb 100644 --- a/Controls/DatePickerSetupControl.php +++ b/Controls/DatePickerSetupControl.php @@ -43,11 +43,7 @@ public function PageLoad() $this->SetDefault('MinDate', null); $this->SetDefault('MaxDate', null); - if ($controlId == 'datepicker') { - $this->Display('Controls/DatePickerSetup.tpl'); - } else { - $this->Display('Controls/DateSetup.tpl'); - } + $this->Display('Controls/DateSetup.tpl'); } private function SetDefault($key, $value) diff --git a/tpl/Controls/DatePickerSetup.tpl b/tpl/Controls/DatePickerSetup.tpl deleted file mode 100644 index faefcaadf..000000000 --- a/tpl/Controls/DatePickerSetup.tpl +++ /dev/null @@ -1,60 +0,0 @@ -{function name=datePickerDateFormat} -new Date({$date->Year()}, {$date->Month()-1}, {$date->Day()}) -{/function} - diff --git a/tpl/Controls/DateSetup.tpl b/tpl/Controls/DateSetup.tpl index e9311a258..670cbe27e 100644 --- a/tpl/Controls/DateSetup.tpl +++ b/tpl/Controls/DateSetup.tpl @@ -1,23 +1,20 @@ -{function name=dateFormat} - new Date({$date->Year()}, {$date->Month()-1}, {$date->Day()}).toISOString().split('T')[0] -{/function} \ No newline at end of file + diff --git a/tpl/Reservation/create.tpl b/tpl/Reservation/create.tpl index 2de5e7fb0..49f85c6cb 100755 --- a/tpl/Reservation/create.tpl +++ b/tpl/Reservation/create.tpl @@ -532,7 +532,6 @@ {control type="DatePickerSetupControl" ControlId="EndRepeat" AltId="formattedEndRepeat" DefaultDate=$RepeatTerminationDate MinDate=$StartDate MaxDate=$AvailabilityEnd FirstDay=$FirstWeekday} {control type="DatePickerSetupControl" ControlId="RepeatDate" AltId="formattedRepeatDate" MaxDate=$AvailabilityEnd FirstDay=$FirstWeekday MinDate=Date::Now()->ToTimezone($Timezone)} -{jsfile src="js/jquery.autogrow.js"} {jsfile src="js/moment.min.js"} {jsfile src="resourcePopup.js"} {jsfile src="userPopup.js"} @@ -643,7 +642,6 @@ return false; }); - $('#description').autogrow(); $('#userName').bindUserDetails(); // jsPDF @@ -680,4 +678,4 @@ } - {include file='globalfooter.tpl'} \ No newline at end of file + {include file='globalfooter.tpl'} diff --git a/tpl/Reservation/view.tpl b/tpl/Reservation/view.tpl index c7d58f3bf..dc221f354 100644 --- a/tpl/Reservation/view.tpl +++ b/tpl/Reservation/view.tpl @@ -369,7 +369,6 @@ {include file="javascript-includes.tpl"} {jsfile src="participation.js"} {jsfile src="approval.js"} -{jsfile src="js/jquery.autogrow.js"} {jsfile src="resourcePopup.js"} {jsfile src="userPopup.js"} {jsfile src="date-helper.js"} @@ -437,4 +436,4 @@ // }); -{include file='globalfooter.tpl'} \ No newline at end of file +{include file='globalfooter.tpl'}