diff --git a/module/common/view/datepicker.html.php b/module/common/view/datepicker.html.php index 2e358a9da8..02d2d3b5cd 100755 --- a/module/common/view/datepicker.html.php +++ b/module/common/view/datepicker.html.php @@ -15,7 +15,7 @@ $(function() return $(this).each(function() { var $this = $(this); - if($this.offset().top + 200 > $(document.body).height()) + if(!$this.data('pickerPosition') && $this.offset().top + 200 > $(document.body).height()) { $this.attr('data-picker-position', 'top-right'); } diff --git a/module/task/view/start.html.php b/module/task/view/start.html.php index fbb6beab8f..705c91fbae 100644 --- a/module/task/view/start.html.php +++ b/module/task/view/start.html.php @@ -33,7 +33,7 @@ - +
task->realStarted;?>
realStarted == '0000-00-00' ? helper::today() : $task->realStarted, "class='form-control form-date'");?>
realStarted == '0000-00-00' ? helper::today() : $task->realStarted, "class='form-control form-date' data-picker-position='bottom-right'");?>
task->consumed;?>