Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/static/js/pad_impexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,22 @@ var padimpexp = (function()
{
importFailed(status);
}
if(directDatabaseAccess) pad.switchToPad(clientVars.padId);
Comment thread
muxator marked this conversation as resolved.
else
{
$('#import_export').removeClass('popup-show');
}

// 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);

location.reload();
Comment thread
muxator marked this conversation as resolved.
$('#import_export').removeClass('popup-show');
}

importDone();
},
disable: function()
Expand Down