Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #11 from MartinMystikJonas/params-type-fix
Browse files Browse the repository at this point in the history
- Fixed data type in passing parameters to JS
  • Loading branch information
akadlec authored Mar 27, 2019
2 parents f4dd0f6 + 1e70aaa commit 230700e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/IPub/FormDateTime/Controls/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ protected function getControlSettings()
// Day of the week start. 0 (Sunday) to 6 (Saturday)
'weekStart' => $this->weekStart,
// Whether or not to close the date picker immediately when a date is selected
'autoclose' => $this->autoclose ? 'true' : 'false',
'autoclose' => (bool) $this->autoclose,
// The view that the date picker should show when it is opened
'startView' => self::START_VIEW_MONTH,
// The lowest view that the date picker should show
Expand Down
4 changes: 2 additions & 2 deletions src/IPub/FormDateTime/Controls/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ protected function getControlSettings()
// The time format, combination of p, P, h, hh, i, ii, s, ss, d, dd, m, mm, M, MM, yy, yyyy
'format' => $this->timeFormat,
// Enable or disable meridian views
'showMeridian' => $this->showMeridian ? 'true' : 'false',
'showMeridian' => (bool) $this->showMeridian,
// Whether or not to close the date picker immediately when a date is selected
'autoclose' => $this->autoclose ? 'true' : 'false',
'autoclose' => (bool) $this->autoclose,
// The lowest view that the date picker should show
'startView' => self::START_VIEW_DAY,
// The lowest view that the date picker should show
Expand Down
4 changes: 2 additions & 2 deletions src/IPub/FormDateTime/Controls/Time.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ protected function getControlSettings()
// The time format, combination of p, P, h, hh, i, ii, s, ss, d, dd, m, mm, M, MM, yy, yyyy
'format' => $this->timeFormat,
// Enable or disable meridian views
'showMeridian' => $this->showMeridian ? 'true' : 'false',
'showMeridian' => (bool) $this->showMeridian,
// Whether or not to close the date picker immediately when a date is selected
'autoclose' => $this->autoclose ? 'true' : 'false',
'autoclose' => (bool) $this->autoclose,
// The lowest view that the date picker should show
'startView' => self::START_VIEW_HOUR,
// The lowest view that the date picker should show
Expand Down

0 comments on commit 230700e

Please sign in to comment.