mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
Added autocomplete to edit series path field.
This commit is contained in:
parent
45c7a99439
commit
94807ac00b
3 changed files with 26 additions and 14 deletions
|
@ -1,19 +1,20 @@
|
|||
'use strict';
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'App',
|
||||
'marionette',
|
||||
'Series/Delete/DeleteSeriesView',
|
||||
'Quality/QualityProfileCollection',
|
||||
'Mixins/AsModelBoundView'
|
||||
'Mixins/AsModelBoundView',
|
||||
'Mixins/AutoComplete'
|
||||
], function (App, Marionette, DeleteSeriesView, QualityProfiles, AsModelBoundView) {
|
||||
|
||||
var view = Marionette.ItemView.extend({
|
||||
template: 'Series/Edit/EditSeriesTemplate',
|
||||
|
||||
ui: {
|
||||
progressbar : '.progress .bar',
|
||||
qualityProfile : '.x-quality-profile'
|
||||
qualityProfile: '.x-quality-profile',
|
||||
path : '.x-path'
|
||||
},
|
||||
|
||||
events: {
|
||||
|
@ -39,10 +40,17 @@ define(
|
|||
App.modalRegion.closeModal();
|
||||
},
|
||||
|
||||
|
||||
onRender: function () {
|
||||
this.ui.path.autoComplete('/directories');
|
||||
},
|
||||
|
||||
removeSeries: function () {
|
||||
var view = new DeleteSeriesView({ model: this.model });
|
||||
App.modalRegion.show(view);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return AsModelBoundView.apply(view);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue