mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Changed login so it leads to previously viewed page
This commit is contained in:
@ -42,7 +42,12 @@ App.Router = function(pathJs, _, jQuery, util, appState) {
|
||||
|
||||
function inject(path, presenterName, additionalParams) {
|
||||
pathJs.map(path).to(function() {
|
||||
util.initContentPresenter(presenterName, _.extend(this.params, additionalParams));
|
||||
var finalParams = _.extend(
|
||||
this.params,
|
||||
additionalParams,
|
||||
{previousRoute: pathJs.routes.previous});
|
||||
|
||||
util.initContentPresenter( presenterName, finalParams);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user