|
|
@ -8,6 +8,7 @@ define(
|
|
|
|
'Settings/DownloadClient/PneumaticView',
|
|
|
|
'Settings/DownloadClient/PneumaticView',
|
|
|
|
'Settings/DownloadClient/NzbgetView',
|
|
|
|
'Settings/DownloadClient/NzbgetView',
|
|
|
|
'Mixins/AsModelBoundView',
|
|
|
|
'Mixins/AsModelBoundView',
|
|
|
|
|
|
|
|
'Mixins/AutoComplete',
|
|
|
|
'bootstrap'
|
|
|
|
'bootstrap'
|
|
|
|
], function (Marionette, SabView, BlackholeView, PneumaticView, NzbgetView, AsModelBoundView) {
|
|
|
|
], function (Marionette, SabView, BlackholeView, PneumaticView, NzbgetView, AsModelBoundView) {
|
|
|
|
|
|
|
|
|
|
|
@ -19,7 +20,8 @@ define(
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
ui: {
|
|
|
|
ui: {
|
|
|
|
downloadClientSelect: '.x-download-client'
|
|
|
|
downloadClientSelect: '.x-download-client',
|
|
|
|
|
|
|
|
downloadedEpisodesFolder: '.x-path'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
events: {
|
|
|
|
events: {
|
|
|
@ -32,6 +34,8 @@ define(
|
|
|
|
this.pneumaticView = new PneumaticView({ model: this.model});
|
|
|
|
this.pneumaticView = new PneumaticView({ model: this.model});
|
|
|
|
this.nzbgetView = new NzbgetView({ model: this.model});
|
|
|
|
this.nzbgetView = new NzbgetView({ model: this.model});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.ui.downloadedEpisodesFolder.autoComplete('/directories');
|
|
|
|
|
|
|
|
|
|
|
|
var client = this.model.get('downloadClient');
|
|
|
|
var client = this.model.get('downloadClient');
|
|
|
|
this.refreshUIVisibility(client);
|
|
|
|
this.refreshUIVisibility(client);
|
|
|
|
},
|
|
|
|
},
|
|
|
|