Make reload save options required explicit arguments.

This commit is contained in:
Tim Abbott
2015-11-30 08:47:19 -08:00
parent 12bff0441c
commit 05acd510c0
4 changed files with 20 additions and 3 deletions

View File

@@ -35,7 +35,10 @@ function call(args, idempotent) {
if (xhr.status === 403) {
try {
if ($.parseJSON(xhr.responseText).msg.indexOf("CSRF Error:") !== -1) {
reload.initiate({immediate: true});
reload.initiate({immediate: true,
save_pointer: true,
save_narrow: true,
save_compose: true});
}
} catch (ex) {
blueslip.error('Unexpected 403 response from server',