1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-07-13 01:20:22 +02:00
Files
Sonarr/UI/Handlebars/Helpers/Numbers.js

20 lines
528 B
JavaScript
Raw Normal View History

2013-06-24 21:43:16 -07:00
'use strict';
define(
[
'handlebars',
'Shared/FormatHelpers'
], function (Handlebars, FormatHelpers) {
Handlebars.registerHelper('Bytes', function (size) {
2013-08-03 18:27:12 -07:00
return new Handlebars.SafeString(FormatHelpers.bytes(size));
2013-06-24 21:43:16 -07:00
});
2013-07-16 17:41:04 -07:00
Handlebars.registerHelper('Pad2', function (input) {
return FormatHelpers.pad(input, 2);
2013-07-16 17:41:04 -07:00
});
2013-07-17 14:53:25 -07:00
Handlebars.registerHelper('Number', function (input) {
2013-08-03 18:27:12 -07:00
return FormatHelpers.number(input);
2013-07-17 14:53:25 -07:00
});
2013-06-24 21:43:16 -07:00
});