1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Recycling bin setting is available on Media Management (advanced)

New: Optional recycling bin on Media Management (advanced)
This commit is contained in:
Mark McDowall 2013-09-28 21:17:20 -07:00
parent 1e0c053bd3
commit 0ee82feab7
2 changed files with 22 additions and 2 deletions

View File

@ -2,11 +2,20 @@
define(
[
'marionette',
'Mixins/AsModelBoundView'
'Mixins/AsModelBoundView',
'Mixins/AutoComplete'
], function (Marionette, AsModelBoundView) {
var view = Marionette.ItemView.extend({
template: 'Settings/MediaManagement/FileManagement/FileManagementViewTemplate'
template: 'Settings/MediaManagement/FileManagement/FileManagementViewTemplate',
ui: {
recyclingBin: '.x-path'
},
onShow: function () {
this.ui.recyclingBin.autoComplete('/directories');
}
});
return AsModelBoundView.call(view);

View File

@ -40,4 +40,15 @@
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">Recycling Bin</label>
<div class="controls">
<input type="text" name="recycleBin" class="x-path"/>
<span class="help-inline">
<i class="icon-nd-form-info" title="Episode files will go here when deleted instead of being permanently deleted"/>
</span>
</div>
</div>
</fieldset>