mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
parent
ef62af75df
commit
b0bd3f34f1
121 changed files with 2570 additions and 2587 deletions
|
@ -2,10 +2,9 @@
|
|||
|
||||
define(
|
||||
[
|
||||
'app',
|
||||
'handlebars',
|
||||
'Shared/FormatHelpers'
|
||||
], function (App, Handlebars) {
|
||||
], function (Handlebars, FormatHelpers) {
|
||||
Handlebars.registerHelper('partial', function (templateName) {
|
||||
//TODO: We should be able to pass in the context, either an object or a property
|
||||
|
||||
|
@ -26,7 +25,7 @@ define(
|
|||
});
|
||||
|
||||
Handlebars.registerHelper('fileSize', function (size) {
|
||||
return new Handlebars.SafeString(NzbDrone.Shared.FormatHelpers.FileSizeHelper(size));
|
||||
return new Handlebars.SafeString(FormatHelpers.FileSizeHelper(size));
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('date', function (date) {
|
||||
|
@ -36,7 +35,7 @@ define(
|
|||
}
|
||||
|
||||
var shortDate = Date.create(date).short();
|
||||
var formattedDate = NzbDrone.Shared.FormatHelpers.DateHelper(date);
|
||||
var formattedDate = FormatHelpers.DateHelper(date);
|
||||
var result = '<span title="' + shortDate + '">' + formattedDate + '</span>';
|
||||
|
||||
return new Handlebars.SafeString(result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue