Added autocomplete to edit series path field.

pull/3113/head
kay.one 12 years ago
parent 45c7a99439
commit 94807ac00b

@ -2,7 +2,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3>Edit: {{title}}</h3>
</div>
<div class="modal-body">
<div class="modal-body edit-series-modal">
<div class="form-horizontal">
<div class="control-group">
@ -65,7 +65,7 @@
<label class="control-label" for="inputPath">Path</label>
<div class="controls">
<input type="text" id="inputPath" placeholder="Path" name="path">
<input type="text" id="inputPath" class="x-path" placeholder="Path" name="path">
<span class="help-inline">
<i class="icon-question-sign" title="Where should NzbDrone store episodes for this series?"/>
</span>

@ -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);
});

@ -2,6 +2,10 @@
@import "../Shared/Styles/clickable.less";
@import "../Content/prefixer";
.edit-series-modal {
overflow : visible;
}
.series-item {
padding-bottom : 30px;

Loading…
Cancel
Save