mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-18 21:55:12 -04:00
History state is persisted across page reloads now
This commit is contained in:
@@ -8,9 +8,15 @@ define(
|
||||
|
||||
var originalInit = this.prototype.initialize;
|
||||
|
||||
this.prototype.initialize = function () {
|
||||
this.prototype.initialize = function (options) {
|
||||
|
||||
if (!this.tableName) {
|
||||
options = options || {};
|
||||
|
||||
if (options.tableName) {
|
||||
this.tableName = options.tableName;
|
||||
}
|
||||
|
||||
if (!this.tableName && !options.tableName) {
|
||||
throw 'tableName is required';
|
||||
}
|
||||
|
||||
@@ -19,7 +25,7 @@ define(
|
||||
this.on('backgrid:sort', _storeState, this);
|
||||
|
||||
if (originalInit) {
|
||||
originalInit.call(this);
|
||||
originalInit.call(this, options);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user