diff --git a/application/helpers/qanda_helper.php b/application/helpers/qanda_helper.php index c1faa196dba..26869307702 100644 --- a/application/helpers/qanda_helper.php +++ b/application/helpers/qanda_helper.php @@ -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, diff --git a/application/helpers/questionHelper.php b/application/helpers/questionHelper.php index f39017033e4..2b703d3d73a 100644 --- a/application/helpers/questionHelper.php +++ b/application/helpers/questionHelper.php @@ -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") ); diff --git a/application/views/survey/questions/answer/date/selector/answer.twig b/application/views/survey/questions/answer/date/selector/answer.twig index 44b3aa427d2..3f3f1ecbbe4 100644 --- a/application/views/survey/questions/answer/date/selector/answer.twig +++ b/application/views/survey/questions/answer/date/selector/answer.twig @@ -54,6 +54,7 @@ 'format' : dateformatdetailsjs, 'minDate' : mindate[0] == '{' ? '1900-01-01' : mindate, 'maxDate' : maxdate[0] == '{' ? '2037-12-31' : maxdate, + 'stepping' : minuteStep, 'sideBySide' : true }) %}