mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
model should automatically be bound to view.
This commit is contained in:
parent
68eada4c4d
commit
30595e85a3
22 changed files with 33 additions and 61 deletions
|
@ -25,8 +25,6 @@ define([
|
|||
},
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
|
||||
this.ui.switch.bootstrapSwitch();
|
||||
this.ui.tooltip.tooltip({ placement: 'right', html: true });
|
||||
this.ui.pathInput.autoComplete('/directories');
|
||||
|
|
|
@ -7,9 +7,5 @@ define([
|
|||
|
||||
NzbDrone.Settings.Indexers.IndexersView = Backbone.Marionette.ItemView.extend({
|
||||
template: 'Settings/Indexers/IndexersTemplate',
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -15,7 +15,6 @@ define([
|
|||
},
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
this.ui.switch.bootstrapSwitch();
|
||||
this.ui.tooltip.tooltip({ placement: 'right', html: true });
|
||||
}
|
||||
|
|
|
@ -19,7 +19,6 @@ define([
|
|||
},
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
this.ui.switch.bootstrapSwitch();
|
||||
this.ui.tooltip.tooltip({ placement: 'right' });
|
||||
}
|
||||
|
|
|
@ -7,9 +7,5 @@ define([
|
|||
|
||||
NzbDrone.Settings.Notifications.NotificationsView = Backbone.Marionette.ItemView.extend({
|
||||
template: 'Settings/Notifications/NotificationsTemplate',
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -15,7 +15,6 @@ define(['app', 'Quality/QualityProfileModel'], function () {
|
|||
},
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
this.ui.switch.bootstrapSwitch();
|
||||
},
|
||||
|
||||
|
|
|
@ -20,13 +20,6 @@ define([
|
|||
'click .x-remove': 'removeSeries'
|
||||
},
|
||||
|
||||
initialize: function () {
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
},
|
||||
|
||||
editSeries: function () {
|
||||
var view = new NzbDrone.Settings.Quality.Profile.EditQualityProfileView({ model: this.model});
|
||||
|
||||
|
|
|
@ -13,9 +13,5 @@ define([
|
|||
this.qualityProfileCollection = options.qualityProfiles;
|
||||
this.model.set({ qualityProfiles: this.qualityProfileCollection });
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -25,8 +25,6 @@ define([
|
|||
},
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
|
||||
var self = this;
|
||||
this.ui.slider.slider({
|
||||
min : 0,
|
||||
|
|
|
@ -7,9 +7,5 @@ define([
|
|||
|
||||
NzbDrone.Settings.System.SystemView = Backbone.Marionette.ItemView.extend({
|
||||
template: 'Settings/System/SystemTemplate',
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue