Skip to content

Commit

Permalink
New feature #14119: minute step for datetimepicker
Browse files Browse the repository at this point in the history
Dev: usage of javascript lib options
  • Loading branch information
Shnoulle committed Oct 2, 2018
1 parent f027568 commit 613faa4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion application/helpers/qanda_helper.php
Expand Up @@ -1123,7 +1123,8 @@ function do_date($ia)
'maxdate' => $maxdate,
'dateformatdetails' => $dateformatdetails['dateformat'],
'dateformatdetailsjs' => $dateformatdetails['jsdate'],
'dateformatdetailsphp' => $dateformatdetails['phpdate'],
'dateformatdetailsphp' => $dateformatdetails['phpdate'],
'minuteStep' => $aQuestionAttributes['dropdown_dates_minute_step'],
'goodchars' => "", // "return window.LS.goodchars(event,'".$goodchars."')", // This won't work with non-latin keyboards
'checkconditionFunction' => $checkconditionFunction.'(this.value, this.name, this.type)',
'language' => App()->language,
Expand Down
2 changes: 1 addition & 1 deletion application/helpers/questionHelper.php
Expand Up @@ -1423,7 +1423,7 @@ public static function getAttributesDefinitions()
'sortorder'=>100,
"inputtype"=>"integer",
'default'=>1,
"help"=>gT("Minute step interval when using select boxes"),
"help"=>gT("Visual minute step interval"),
"caption"=>gT("Minute step interval")
);

Expand Down
Expand Up @@ -54,6 +54,7 @@
'format' : dateformatdetailsjs,
'minDate' : mindate[0] == '{' ? '1900-01-01' : mindate,
'maxDate' : maxdate[0] == '{' ? '2037-12-31' : maxdate,
'stepping' : minuteStep,
'sideBySide' : true
})
%}
Expand Down

0 comments on commit 613faa4

Please sign in to comment.