mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
pad_impexp: Style fixes to improve readability
This commit is contained in:
parent
efe07cd027
commit
890e16f6fc
1 changed files with 5 additions and 20 deletions
|
@ -46,24 +46,13 @@ const padimpexp = (() => {
|
|||
$('#importmessagefail').fadeOut('fast');
|
||||
if (!window.confirm(html10n.get('pad.impexp.confirmimport'))) return false;
|
||||
currentImportTimer = window.setTimeout(() => {
|
||||
if (!currentImportTimer) {
|
||||
return;
|
||||
}
|
||||
if (!currentImportTimer) return;
|
||||
currentImportTimer = null;
|
||||
importErrorMessage('Request timed out.');
|
||||
importDone();
|
||||
}, 25000); // time out after some number of seconds
|
||||
$('#importsubmitinput').attr(
|
||||
{
|
||||
disabled: true,
|
||||
}).val(html10n.get('pad.impexp.importing'));
|
||||
|
||||
window.setTimeout(() => {
|
||||
$('#importfileinput').attr(
|
||||
{
|
||||
disabled: true,
|
||||
});
|
||||
}, 0);
|
||||
$('#importsubmitinput').attr({disabled: true}).val(html10n.get('pad.impexp.importing'));
|
||||
window.setTimeout(() => $('#importfileinput').attr({disabled: true}), 0);
|
||||
$('#importarrow').stop(true, true).hide();
|
||||
$('#importstatusball').show();
|
||||
return true;
|
||||
|
@ -71,9 +60,7 @@ const padimpexp = (() => {
|
|||
|
||||
const importDone = () => {
|
||||
$('#importsubmitinput').removeAttr('disabled').val(html10n.get('pad.impexp.importbutton'));
|
||||
window.setTimeout(() => {
|
||||
$('#importfileinput').removeAttr('disabled');
|
||||
}, 0);
|
||||
window.setTimeout(() => $('#importfileinput').removeAttr('disabled'), 0);
|
||||
$('#importstatusball').hide();
|
||||
importClearTimeout();
|
||||
addImportFrames();
|
||||
|
@ -109,9 +96,7 @@ const padimpexp = (() => {
|
|||
|
||||
if ($('#importexport .importmessage').is(':visible')) {
|
||||
$('#importmessagesuccess').fadeOut('fast');
|
||||
$('#importmessagefail').fadeOut('fast', () => {
|
||||
showError(true);
|
||||
});
|
||||
$('#importmessagefail').fadeOut('fast', () => showError(true));
|
||||
} else {
|
||||
showError();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue