Fix duration parsing in inline-edit

pull/4261/head
Oliver Günther 9 years ago
parent b656273995
commit 6a6a4a95f2
  1. 2
      frontend/app/ui_components/duration-directive.js

@ -32,7 +32,7 @@ module.exports = function($filter, TimezoneService) {
require: 'ngModel',
link: function(scope, element, attrs, ngModelController) {
ngModelController.$parsers.push(function(value) {
if (value) {
if (!isNaN(value)) {
var minutes = Number(moment.duration(value, 'hours').asMinutes().toFixed(2));
return moment.duration(minutes, 'minutes');
}

Loading…
Cancel
Save