mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
pad_impexp: Invert logic to improve readability
This commit is contained in:
parent
ce4ce8ce95
commit
efe07cd027
1 changed files with 21 additions and 23 deletions
|
@ -44,8 +44,7 @@ const padimpexp = (() => {
|
||||||
|
|
||||||
const fileInputSubmit = () => {
|
const fileInputSubmit = () => {
|
||||||
$('#importmessagefail').fadeOut('fast');
|
$('#importmessagefail').fadeOut('fast');
|
||||||
const ret = window.confirm(html10n.get('pad.impexp.confirmimport'));
|
if (!window.confirm(html10n.get('pad.impexp.confirmimport'))) return false;
|
||||||
if (ret) {
|
|
||||||
currentImportTimer = window.setTimeout(() => {
|
currentImportTimer = window.setTimeout(() => {
|
||||||
if (!currentImportTimer) {
|
if (!currentImportTimer) {
|
||||||
return;
|
return;
|
||||||
|
@ -67,8 +66,7 @@ const padimpexp = (() => {
|
||||||
}, 0);
|
}, 0);
|
||||||
$('#importarrow').stop(true, true).hide();
|
$('#importarrow').stop(true, true).hide();
|
||||||
$('#importstatusball').show();
|
$('#importstatusball').show();
|
||||||
}
|
return true;
|
||||||
return ret;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const importDone = () => {
|
const importDone = () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue