1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Handlebars/Helpers/Numbers.js

20 lines
528 B
JavaScript
Raw Normal View History

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