mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
removed add series tab
This commit is contained in:
parent
0d21f34ec5
commit
6e6df842a0
18 changed files with 87 additions and 151 deletions
15
UI/AddSeries/RootFolders/LayoutTemplate.html
Normal file
15
UI/AddSeries/RootFolders/LayoutTemplate.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<i class="icon-hdd"/>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="input-prepend input-append x-path">
|
||||
<i class="add-on icon-folder-open"></i>
|
||||
<input class="input-block-level" type="text" placeholder="Path of the folder to add ...">
|
||||
<div class="btn icon-plus btn-success x-add"/>
|
||||
</div>
|
||||
<div class="result-list" id="current-dirs"/>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn" data-dismiss="modal">close</button>
|
||||
</div>
|
|
@ -0,0 +1,7 @@
|
|||
<select class="span6 x-root-folder">
|
||||
{{debug}}
|
||||
{{#each this}}
|
||||
<option value="{{id}}">{{path}}</option>
|
||||
{{/each}}
|
||||
<option value="addNew">Add a diffrent path</option>
|
||||
</select>
|
|
@ -1,9 +0,0 @@
|
|||
<div class="tab-pane row" id="root-dir">
|
||||
<div class="input-prepend input-append nz-input-large x-path span10">
|
||||
<i class="add-on icon-folder-open"></i>
|
||||
<input class="input-block-level" type="text" placeholder="Path of the folder to add ...">
|
||||
|
||||
<div class="btn icon-plus btn-success x-add"/>
|
||||
</div>
|
||||
<div class="span12 result-list" id="current-dirs"/>
|
||||
</div>
|
11
UI/AddSeries/RootFolders/RootFolderTemplateHelper.js
Normal file
11
UI/AddSeries/RootFolders/RootFolderTemplateHelper.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
define(['app', 'AddSeries/RootFolders/RootFolderCollection'], function (app, rootFolders) {
|
||||
|
||||
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');
|
||||
return new Handlebars.SafeString(templateFunction(rootFolders.toJSON()));
|
||||
});
|
||||
});
|
|
@ -25,9 +25,8 @@ define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'Mixins/AutoComplet
|
|||
className: 'table table-hover'
|
||||
});
|
||||
|
||||
NzbDrone.AddSeries.RootDirView = Backbone.Marionette.Layout.extend({
|
||||
template: 'AddSeries/RootFolders/RootFolderTemplate',
|
||||
route : 'series/add/rootdir',
|
||||
NzbDrone.AddSeries.RootFolders.Layout = Backbone.Marionette.Layout.extend({
|
||||
template: 'AddSeries/RootFolders/LayoutTemplate',
|
||||
|
||||
ui: {
|
||||
pathInput: '.x-path input'
|
||||
|
@ -75,8 +74,6 @@ define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'Mixins/AutoComplet
|
|||
console.log(term);
|
||||
context.collection.fetch({ data: { term: term } });
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue