pad_impexp: Invert logic to improve readability

This commit is contained in:
Richard Hansen 2021-02-07 20:23:15 -05:00 committed by John McLear
parent ce4ce8ce95
commit efe07cd027
1 changed files with 21 additions and 23 deletions

View File

@ -44,8 +44,7 @@ const padimpexp = (() => {
const fileInputSubmit = () => {
$('#importmessagefail').fadeOut('fast');
const ret = window.confirm(html10n.get('pad.impexp.confirmimport'));
if (ret) {
if (!window.confirm(html10n.get('pad.impexp.confirmimport'))) return false;
currentImportTimer = window.setTimeout(() => {
if (!currentImportTimer) {
return;
@ -67,8 +66,7 @@ const padimpexp = (() => {
}, 0);
$('#importarrow').stop(true, true).hide();
$('#importstatusball').show();
}
return ret;
return true;
};
const importDone = () => {