mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
fixed auto modelbinder.
This commit is contained in:
@@ -19,13 +19,15 @@ Marionette.View.prototype.viewName = function () {
|
|||||||
|
|
||||||
Marionette.ItemView.prototype.render = function () {
|
Marionette.ItemView.prototype.render = function () {
|
||||||
|
|
||||||
|
var result = oldItemViewRender.apply(this, arguments);
|
||||||
|
|
||||||
|
this.$el.addClass('iv-' + this.viewName());
|
||||||
|
|
||||||
if (this.model) {
|
if (this.model) {
|
||||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$el.addClass('iv-' + this.viewName());
|
return result;
|
||||||
|
|
||||||
return oldItemViewRender.apply(this, arguments);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Marionette.CollectionView.prototype.render = function () {
|
Marionette.CollectionView.prototype.render = function () {
|
||||||
|
Reference in New Issue
Block a user