diff --git a/resources/views/tasks/edit.blade.php b/resources/views/tasks/edit.blade.php index f8d059fc6454..2ff848fa7d9a 100644 --- a/resources/views/tasks/edit.blade.php +++ b/resources/views/tasks/edit.blade.php @@ -125,7 +125,7 @@ - + {{ trans('texts.set_now') }} @@ -352,6 +352,11 @@ self.duration.pretty = ko.computed({ read: function() { + // handle the input being changed and the form is submitted before focus out + if ($("input.duration").is(":focus")) { + return $("input.duration").val(); + } + var duration = false; var start = self.startTime(); var end = self.endTime();