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 #12 from iPublikuj/revert-4-master
Browse files Browse the repository at this point in the history
Revert "Wrong settings datatype"
  • Loading branch information
akadlec committed Mar 27, 2019
2 parents 5f420ed + 0278302 commit f4dd0f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/IPub/FormDateTime/Controls/Date.php
Expand Up @@ -316,7 +316,6 @@ public function getControl()
*/
public function getControlPart()
{

$args = func_get_args();
$key = reset($args);

Expand Down
4 changes: 2 additions & 2 deletions src/IPub/FormDateTime/Controls/DateTime.php
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' => $this->showMeridian ? 'true' : 'false',
// Whether or not to close the date picker immediately when a date is selected
'autoclose' => $this->autoclose ? true : false,
'autoclose' => $this->autoclose ? 'true' : 'false',
// 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
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' => $this->showMeridian ? 'true' : 'false',
// Whether or not to close the date picker immediately when a date is selected
'autoclose' => $this->autoclose ? true : false,
'autoclose' => $this->autoclose ? 'true' : 'false',
// 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 f4dd0f6

Please sign in to comment.