diff options
author | 2013-06-09 16:08:59 +0200 | |
---|---|---|
committer | 2013-06-09 16:08:59 +0200 | |
commit | ecfef4a560dece9dd911017efdfc63fcc04bedfc (patch) | |
tree | 42d00f155c47a8a80e3a023c841a59f87b73885c /module/web/app/scripts/helpers/formatTime.js | |
parent | restructured webui to single-page-app, removed jinja (diff) | |
download | pyload-ecfef4a560dece9dd911017efdfc63fcc04bedfc.tar.xz |
adapted to jshint config
Diffstat (limited to 'module/web/app/scripts/helpers/formatTime.js')
-rw-r--r-- | module/web/app/scripts/helpers/formatTime.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/web/app/scripts/helpers/formatTime.js b/module/web/app/scripts/helpers/formatTime.js index 77d67a39c..757ff73ad 100644 --- a/module/web/app/scripts/helpers/formatTime.js +++ b/module/web/app/scripts/helpers/formatTime.js @@ -1,12 +1,12 @@ // Format bytes in human readable format -define('helpers/formatTime', ['handlebars', 'utils/remaining'], function(Handlebars, Remaining) { - +define('helpers/formatTime', ['handlebars', 'vendor/remaining'], function(Handlebars, Remaining) { + 'use strict'; function formatTime(seconds, options) { if (seconds === Infinity) return '∞'; else if (!seconds || seconds <= 0) - return "-"; + return '-'; // TODO: digital or written string return Remaining.getStringDigital(seconds, window.dates); |