Fixed syntax

This commit is contained in:
Igor Zhukov 2016-11-28 16:21:29 +03:00
parent 9dbb68b053
commit f725f89079

View File

@ -143,7 +143,7 @@ angular.module('myApp.filters', ['myApp.i18n'])
var mins = Math.floor((duration % 3600) / 60)
var secs = duration % 60
var durationStr = (hours ? hours + ':' : '') + mins + ':' secs
var durationStr = (hours ? hours + ':' : '') + mins + ':' + secs
durationStr = durationStr.replace(/:(\d(?::|$))/g, ':0\1')