mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -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 = () => {
|
||||
$('#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 = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue