mirror of https://github.com/lidarr/Lidarr
indexer settings is dynamically generated
This commit is contained in:
parent
1877f70403
commit
7696fb54dc
|
@ -24,6 +24,7 @@ module.exports = function (grunt) {
|
||||||
'UI/JsLibraries/backbone.backgrid.paginator.js' : 'http://raw.github.com/wyuenho/backgrid/master/lib/extensions/paginator/backgrid-paginator.js',
|
'UI/JsLibraries/backbone.backgrid.paginator.js' : 'http://raw.github.com/wyuenho/backgrid/master/lib/extensions/paginator/backgrid-paginator.js',
|
||||||
'UI/JsLibraries/backbone.backgrid.filter.js' : 'http://raw.github.com/wyuenho/backgrid/master/lib/extensions/filter/backgrid-filter.js',
|
'UI/JsLibraries/backbone.backgrid.filter.js' : 'http://raw.github.com/wyuenho/backgrid/master/lib/extensions/filter/backgrid-filter.js',
|
||||||
'UI/JsLibraries/messenger.js' : 'http://raw.github.com/HubSpot/messenger/master/build/js/messenger.js',
|
'UI/JsLibraries/messenger.js' : 'http://raw.github.com/HubSpot/messenger/master/build/js/messenger.js',
|
||||||
|
'UI/JsLibraries/lunr.js' : 'http://raw.github.com/olivernn/lunr.js/master/lunr.js',
|
||||||
'UI/Content/messenger.css' : 'http://raw.github.com/HubSpot/messenger/master/build/css/messenger.css',
|
'UI/Content/messenger.css' : 'http://raw.github.com/HubSpot/messenger/master/build/css/messenger.css',
|
||||||
'UI/Content/bootstrap.toggle-switch.css' : 'http://raw.github.com/ghinda/css-toggle-switch/gh-pages/toggle-switch.css',
|
'UI/Content/bootstrap.toggle-switch.css' : 'http://raw.github.com/ghinda/css-toggle-switch/gh-pages/toggle-switch.css',
|
||||||
'UI/Content/messenger.future.css' : 'http://raw.github.com/HubSpot/messenger/master/build/css/messenger-theme-future.css'
|
'UI/Content/messenger.future.css' : 'http://raw.github.com/HubSpot/messenger/master/build/css/messenger-theme-future.css'
|
||||||
|
|
|
@ -97,6 +97,7 @@
|
||||||
<script src="/JsLibraries/backbone.mutators.js"></script>
|
<script src="/JsLibraries/backbone.mutators.js"></script>
|
||||||
<script src="/JsLibraries/backbone.marionette.js"></script>
|
<script src="/JsLibraries/backbone.marionette.js"></script>
|
||||||
<script src="/JsLibraries/backbone.pageable.js"></script>
|
<script src="/JsLibraries/backbone.pageable.js"></script>
|
||||||
|
<script src="/JsLibraries/lunr.js"></script>
|
||||||
<script src="/JsLibraries/backbone.backgrid.js"></script>
|
<script src="/JsLibraries/backbone.backgrid.js"></script>
|
||||||
<script src="/JsLibraries/backbone.backgrid.paginator.js"></script>
|
<script src="/JsLibraries/backbone.backgrid.paginator.js"></script>
|
||||||
<script src="/JsLibraries/backbone.backgrid.filter.js"></script>
|
<script src="/JsLibraries/backbone.backgrid.filter.js"></script>
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -4,7 +4,6 @@ define([
|
||||||
'Missing/Collection',
|
'Missing/Collection',
|
||||||
'Series/Index/Table/AirDateCell',
|
'Series/Index/Table/AirDateCell',
|
||||||
'Series/Index/Table/SeriesStatusCell',
|
'Series/Index/Table/SeriesStatusCell',
|
||||||
'Shared/Toolbar/ToolbarView',
|
|
||||||
'Shared/Toolbar/ToolbarLayout'
|
'Shared/Toolbar/ToolbarLayout'
|
||||||
],
|
],
|
||||||
function () {
|
function () {
|
||||||
|
|
|
@ -6,7 +6,6 @@ define([
|
||||||
'Series/Index/EmptyView',
|
'Series/Index/EmptyView',
|
||||||
'Series/Index/Table/AirDateCell',
|
'Series/Index/Table/AirDateCell',
|
||||||
'Series/Index/Table/SeriesStatusCell',
|
'Series/Index/Table/SeriesStatusCell',
|
||||||
'Shared/Toolbar/ToolbarView',
|
|
||||||
'Shared/Toolbar/ToolbarLayout',
|
'Shared/Toolbar/ToolbarLayout',
|
||||||
'Config'
|
'Config'
|
||||||
],
|
],
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
{{#each fields}}
|
{{#each fields}}
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label">{{title}}</label>
|
<label class="control-label">{{label}}</label>
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="fields.{{@index}}.value"/>
|
<input type="text" name="fields.{{@index}}.value"/>
|
||||||
|
@ -35,4 +35,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
@ -7,13 +7,8 @@ define([
|
||||||
], function () {
|
], function () {
|
||||||
|
|
||||||
NzbDrone.Settings.Indexers.ItemView = Backbone.Marionette.ItemView.extend({
|
NzbDrone.Settings.Indexers.ItemView = Backbone.Marionette.ItemView.extend({
|
||||||
template: 'Settings/Indexers/ItemTemplate',
|
template : 'Settings/Indexers/ItemTemplate',
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
this.model.set('fields', [
|
|
||||||
{ key: 'username', title: 'Username', helpText: 'HALP!', value: 'mark' },
|
|
||||||
{ key: 'apiKey', title: 'API Key', helpText: 'HALP!', value: 'private' }
|
|
||||||
]);
|
|
||||||
|
|
||||||
NzbDrone.vent.on(NzbDrone.Commands.SaveSettings, this.saveSettings, this);
|
NzbDrone.vent.on(NzbDrone.Commands.SaveSettings, this.saveSettings, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue