From 2cf160d497e501bf254bd8be054c0f5880ab90ca Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 8 Jun 2013 17:37:43 +0200 Subject: restructured webui to single-page-app, removed jinja --- module/web/static/js/helpers/formatTime.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 module/web/static/js/helpers/formatTime.js (limited to 'module/web/static/js/helpers/formatTime.js') diff --git a/module/web/static/js/helpers/formatTime.js b/module/web/static/js/helpers/formatTime.js deleted file mode 100644 index 77d67a39c..000000000 --- a/module/web/static/js/helpers/formatTime.js +++ /dev/null @@ -1,17 +0,0 @@ -// Format bytes in human readable format -define('helpers/formatTime', ['handlebars', 'utils/remaining'], function(Handlebars, Remaining) { - - - function formatTime(seconds, options) { - if (seconds === Infinity) - return '∞'; - else if (!seconds || seconds <= 0) - return "-"; - - // TODO: digital or written string - return Remaining.getStringDigital(seconds, window.dates); - } - - Handlebars.registerHelper('formatTime', formatTime); - return formatTime; -}); \ No newline at end of file -- cgit v1.2.3