mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
removing js refrences from index.html
This commit is contained in:
parent
1f62194ab8
commit
aed7b95245
13 changed files with 335 additions and 300 deletions
19
UI/app.js
19
UI/app.js
|
@ -3,9 +3,11 @@ require.config({
|
|||
|
||||
paths: {
|
||||
'backbone' : 'JsLibraries/backbone',
|
||||
'$' : 'JsLibraries/jquery',
|
||||
'underscore': 'JsLibraries/underscore',
|
||||
'marionette': 'JsLibraries/backbone.marionette',
|
||||
'handlebars': 'JsLibraries/handlebars'
|
||||
'handlebars': 'JsLibraries/handlebars',
|
||||
'libs' : 'JsLibraries/'
|
||||
},
|
||||
|
||||
shim: {
|
||||
|
@ -13,7 +15,7 @@ require.config({
|
|||
exports: '_'
|
||||
},
|
||||
backbone : {
|
||||
deps : ['underscore'],
|
||||
deps : ['underscore', '$'],
|
||||
exports: 'Backbone'
|
||||
},
|
||||
marionette: {
|
||||
|
@ -22,11 +24,19 @@ require.config({
|
|||
},
|
||||
handlebars: {
|
||||
exports: 'Handlebars'
|
||||
},
|
||||
|
||||
backbone_backgrid :{
|
||||
exports: 'backgrid'
|
||||
},
|
||||
|
||||
backgrid : {
|
||||
deps: ['backbone', 'libs/backbone.backgrid', 'libs/backbone.backgrid.paginator']
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
define('app', ['shared/modal/region'], function (ModalRegion) {
|
||||
define(['backbone','backgrid'], function (ModalRegion) {
|
||||
|
||||
window.NzbDrone = new Backbone.Marionette.Application();
|
||||
window.NzbDrone.Config = {};
|
||||
|
@ -64,7 +74,8 @@ define('app', ['shared/modal/region'], function (ModalRegion) {
|
|||
window.NzbDrone.Shared = {
|
||||
Toolbar : {},
|
||||
Messenger : {},
|
||||
FormatHelpers: {}
|
||||
FormatHelpers: {},
|
||||
Grid : {}
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue