pad_impexp: Delete unnecessary `importFailed` wrapper

pull/4779/head
Richard Hansen 2020-10-05 21:12:07 -04:00 committed by John McLear
parent 8a221ca773
commit ce4ce8ce95
1 changed files with 2 additions and 6 deletions

View File

@ -51,7 +51,7 @@ const padimpexp = (() => {
return;
}
currentImportTimer = null;
importFailed('Request timed out.');
importErrorMessage('Request timed out.');
importDone();
}, 25000); // time out after some number of seconds
$('#importsubmitinput').attr(
@ -71,10 +71,6 @@ const padimpexp = (() => {
return ret;
};
const importFailed = (msg) => {
importErrorMessage(msg);
};
const importDone = () => {
$('#importsubmitinput').removeAttr('disabled').val(html10n.get('pad.impexp.importbutton'));
window.setTimeout(() => {
@ -196,7 +192,7 @@ const padimpexp = (() => {
handleFrameCall: (directDatabaseAccess, status) => {
if (directDatabaseAccess === 'undefined') directDatabaseAccess = false;
if (status !== 'ok') {
importFailed(status);
importErrorMessage(status);
} else {
$('#import_export').removeClass('popup-show');
}