mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-01 17:20:50 +02:00
New: Select preferred protocol (usenet/torrent) New: Option to delay grabs from usenet/torrents independently
27 lines
696 B
JavaScript
27 lines
696 B
JavaScript
'use strict';
|
|
|
|
define([
|
|
'jquery',
|
|
'AppLayout',
|
|
'marionette',
|
|
'Settings/Profile/Delay/Edit/DelayProfileEditView'
|
|
], function ($, AppLayout, Marionette, EditView) {
|
|
|
|
return Marionette.ItemView.extend({
|
|
template : 'Settings/Profile/Delay/DelayProfileItemViewTemplate',
|
|
className : 'row',
|
|
|
|
events: {
|
|
'click .x-edit' : '_edit'
|
|
},
|
|
|
|
initialize: function () {
|
|
this.listenTo(this.model, 'sync', this.render);
|
|
},
|
|
|
|
_edit: function() {
|
|
var view = new EditView({ model: this.model, targetCollection: this.model.collection});
|
|
AppLayout.modalRegion.show(view);
|
|
}
|
|
});
|
|
});
|