mirror of https://github.com/Sonarr/Sonarr
fixed results not showing on render
This commit is contained in:
parent
927dbba945
commit
344844234a
|
@ -9,7 +9,6 @@ define(
|
|||
return function () {
|
||||
|
||||
var originalOnRender = this.prototype.onRender;
|
||||
var originalOnClose = this.prototype.onClose;
|
||||
var originalBeforeClose = this.prototype.onBeforeClose;
|
||||
|
||||
var errorHandler = function (response) {
|
||||
|
@ -65,18 +64,6 @@ define(
|
|||
}
|
||||
};
|
||||
|
||||
this.prototype.onClose = function () {
|
||||
|
||||
if (this.model && this.model.isNew()) {
|
||||
this.model.destroy();
|
||||
}
|
||||
|
||||
if (originalOnClose) {
|
||||
originalBeforeClose.call(this);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
return this;
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue