Skip to content

Commit

Permalink
pad_impexp: refresh the page instead, ungraceful but works
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMcLear committed Apr 21, 2020
1 parent f917e07 commit 45dfff1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/static/js/pad_impexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,12 @@ var padimpexp = (function()

// directDatabaseAccess is a string not a boolean
if (directDatabaseAccess !== 'undefined') {
// commented out for now. This needs a proper fix after 1.8.3
// TODO: pad.switchToPad() should not require a reload of the page.
// Switch to the pad without redrawing the page
pad.switchToPad(clientVars.padId);
// pad.switchToPad(clientVars.padId);

location.reload();
$('#import_export').removeClass('popup-show');
}

Expand Down

0 comments on commit 45dfff1

Please sign in to comment.