mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Added autocomplete to edit series path field.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user