diff --git a/UI/.idea/inspectionProfiles/Project_Default.xml b/UI/.idea/inspectionProfiles/Project_Default.xml
index cff2d2d6c..9d0540909 100644
--- a/UI/.idea/inspectionProfiles/Project_Default.xml
+++ b/UI/.idea/inspectionProfiles/Project_Default.xml
@@ -4,7 +4,7 @@
-
+
@@ -67,7 +67,6 @@
-
diff --git a/UI/.idea/scopes/NzbDrone.xml b/UI/.idea/scopes/NzbDrone.xml
new file mode 100644
index 000000000..17c1c9c5e
--- /dev/null
+++ b/UI/.idea/scopes/NzbDrone.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/UI/Calendar/UpcomingItemTemplate.html b/UI/Calendar/UpcomingItemTemplate.html
index 75f9a48b0..d92aa0ee3 100644
--- a/UI/Calendar/UpcomingItemTemplate.html
+++ b/UI/Calendar/UpcomingItemTemplate.html
@@ -6,5 +6,5 @@
{{series.title}}
-
{{#if isContinuing}}
{{#if nextAiring}}
-
{{date nextAiring}}
+
{{ShortDate nextAiring}}
{{/if}}
Season {{seasonCount}}
{{else}}
diff --git a/UI/Series/Index/Posters/ItemTemplate.html b/UI/Series/Index/Posters/ItemTemplate.html
index 76155782a..df56bab8e 100644
--- a/UI/Series/Index/Posters/ItemTemplate.html
+++ b/UI/Series/Index/Posters/ItemTemplate.html
@@ -22,7 +22,7 @@
{{#if isContinuing}}
{{#if nextAiring}}
- {{date nextAiring}}
+ {{ShortDate nextAiring}}
{{/if}}
Season {{seasonCount}}
{{else}}
diff --git a/UI/Settings/Quality/Profile/QualityProfileView.js b/UI/Settings/Quality/Profile/QualityProfileView.js
index bd4d79db6..77cbe2d94 100644
--- a/UI/Settings/Quality/Profile/QualityProfileView.js
+++ b/UI/Settings/Quality/Profile/QualityProfileView.js
@@ -1,5 +1,4 @@
-
-'use strict';
+'use strict';
define(
[
diff --git a/UI/Shared/FormatHelpers.js b/UI/Shared/FormatHelpers.js
index 1c14f8e87..9f67ecd7f 100644
--- a/UI/Shared/FormatHelpers.js
+++ b/UI/Shared/FormatHelpers.js
@@ -4,7 +4,7 @@ define(
[
'sugar'
], {
- FileSizeHelper: function (sourceSize) {
+ Bytes: function (sourceSize) {
var size = Number(sourceSize);
return size.bytes(1);
},
diff --git a/UI/Shared/TemplateHelpers.js b/UI/Shared/TemplateHelpers.js
deleted file mode 100644
index c32297e2f..000000000
--- a/UI/Shared/TemplateHelpers.js
+++ /dev/null
@@ -1,47 +0,0 @@
-'use strict';
-
-define(
- [
- 'handlebars',
- 'Shared/FormatHelpers'
- ], function (Handlebars, FormatHelpers) {
- Handlebars.registerHelper('partial', function (templateName) {
- //TODO: We should be able to pass in the context, either an object or a property
-
- var templateFunction = Marionette.TemplateCache.get(templateName);
- return new Handlebars.SafeString(templateFunction(this));
- });
-
- Handlebars.registerHelper('debug', function (optionalValue) {
- console.log('Current Context');
- console.log('====================');
- console.log(this);
-
- if (optionalValue) {
- console.log('Value');
- console.log('====================');
- console.log(optionalValue);
- }
- });
-
- Handlebars.registerHelper('fileSize', function (size) {
- return new Handlebars.SafeString(FormatHelpers.FileSizeHelper(size));
- });
-
- Handlebars.registerHelper('date', function (date) {
- //TODO: show actual date in tooltip
- if (!date) {
- return '';
- }
-
- var shortDate = Date.create(date).short();
- var formattedDate = FormatHelpers.DateHelper(date);
- var result = '' + formattedDate + '';
-
- return new Handlebars.SafeString(result);
- });
-
- Handlebars.registerHelper('defaultImg', function () {
- return new Handlebars.SafeString('onerror="this.src="/content/images/poster-dark.jpg";"');
- });
- });
diff --git a/UI/app.js b/UI/app.js
index c20f10551..6ae34756c 100644
--- a/UI/app.js
+++ b/UI/app.js
@@ -1,4 +1,4 @@
-'use strict';
+'use strict';
require.config({
urlArgs: 'v=' + window.ServerStatus.version,
@@ -36,6 +36,14 @@ require.config({
}
},
+
+ signalR: {
+ deps:
+ [
+ '$'
+ ]
+ },
+
bootstrap: {
deps:
[
@@ -57,7 +65,7 @@ require.config({
]
},
- 'underscore': {
+ underscore: {
deps :
[
'$'
@@ -90,30 +98,19 @@ require.config({
deps:
[
'backbone',
- 'handlebars',
'Handlebars/backbone.marionette.templates',
- 'mixins/AsNamedView',
-
- 'Handlebars/Helpers/DateTime'
+ 'mixins/AsNamedView'
],
exports: 'Marionette',
- init : function (Backbone, Handlebars, TemplateMixin, AsNamedView, DateTimeHelpers) {
+ init : function (Backbone, TemplateMixin, AsNamedView) {
TemplateMixin.call(Marionette.TemplateCache);
AsNamedView.call(Marionette.ItemView.prototype);
- DateTimeHelpers.register(Handlebars);
}
},
- signalR: {
- deps:
- [
- '$'
- ]
- },
-
'backbone.pageable': {
deps:
[