mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
added more import code in ui.
some jshint cleanup.
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
{{#each unmappedFolders}}
|
||||
<div>
|
||||
{{this}}
|
||||
<div class="accordion result-list span12 offset4 ">
|
||||
<h2>{{path}}</h2>
|
||||
{{#each unmappedFolders}}
|
||||
<div class="accordion-group">
|
||||
<div class="accordion-heading">
|
||||
<a class="accordion-toggle" data-toggle="collapse" href="#{{../id}}_{{@index}}">{{this}}</a>
|
||||
</div>
|
||||
<div id="{{../id}}_{{@index}}" class="accordion-body collapse">
|
||||
<div class="accordion-inner">
|
||||
{{this}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
/// <reference path="../../app.js" />
|
||||
'use strict';
|
||||
/*global NzbDrone, Backbone*/
|
||||
|
||||
/// <reference path="../../app.js" />
|
||||
/// <reference path="../../Series/SeriesModel.js" />
|
||||
/// <reference path="../SearchResultCollection.js" />
|
||||
|
||||
NzbDrone.AddSeries.ExistingFolderItemView = Backbone.Marionette.ItemView.extend({
|
||||
|
||||
template: "AddSeries/ImportExistingSeries/ImportSeriesTemplate",
|
||||
|
||||
events: {
|
||||
//'click .x-add': 'add'
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
NzbDrone.AddSeries.ExistingFolderListView = Backbone.Marionette.CollectionView.extend({
|
||||
|
||||
itemView: NzbDrone.AddSeries.ExistingFolderItemView,
|
||||
|
||||
initialize: function (options) {
|
||||
initialize: function () {
|
||||
|
||||
if (this.collection === undefined) {
|
||||
throw "root folder collection is required.";
|
||||
}
|
||||
|
||||
|
||||
this.listenTo(this.collection, 'reset', this.render, this);
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user