parent
0916c8b8d1
commit
24c77b4047
@ -1,11 +1,13 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
define(['app', 'AddSeries/RootFolders/RootFolderCollection','handlebars'], function (app, rootFolders, Handlebars) {
|
define(
|
||||||
|
[
|
||||||
|
'AddSeries/RootFolders/Collection',
|
||||||
|
'handlebars'
|
||||||
|
], function (rootFolders, Handlebars) {
|
||||||
|
|
||||||
Handlebars.registerHelper('rootFolderSelection', function () {
|
Handlebars.registerHelper('rootFolderSelection', function () {
|
||||||
//TODO: We should be able to pass in the context, either an object or a property
|
|
||||||
|
|
||||||
var templateFunction = Marionette.TemplateCache.get('AddSeries/RootFolders/RootFolderSelectionTemplate');
|
var templateFunction = Marionette.TemplateCache.get('AddSeries/RootFolders/RootFolderSelectionTemplate');
|
||||||
return new Handlebars.SafeString(templateFunction(rootFolders.toJSON()));
|
return new Handlebars.SafeString(templateFunction(rootFolders.toJSON()));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
var statusText = $.ajax({
|
var statusText = $.ajax({
|
||||||
type : "GET",
|
type : "GET",
|
||||||
url : 'api/system/status',
|
url : '/api/system/status',
|
||||||
async: false,
|
async: false
|
||||||
}).responseText;
|
}).responseText;
|
||||||
|
|
||||||
window.ServerStatus = JSON.parse(statusText);
|
window.ServerStatus = JSON.parse(statusText);
|
||||||
|
Loading…
Reference in new issue