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');
|
$('#importmessagefail').fadeOut('fast');
|
||||||
if (!window.confirm(html10n.get('pad.impexp.confirmimport'))) return false;
|
if (!window.confirm(html10n.get('pad.impexp.confirmimport'))) return false;
|
||||||
currentImportTimer = window.setTimeout(() => {
|
currentImportTimer = window.setTimeout(() => {
|
||||||
if (!currentImportTimer) {
|
if (!currentImportTimer) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
currentImportTimer = null;
|
currentImportTimer = null;
|
||||||
importErrorMessage('Request timed out.');
|
importErrorMessage('Request timed out.');
|
||||||
importDone();
|
importDone();
|
||||||
}, 25000); // time out after some number of seconds
|
}, 25000); // time out after some number of seconds
|
||||||
$('#importsubmitinput').attr(
|
$('#importsubmitinput').attr({disabled: true}).val(html10n.get('pad.impexp.importing'));
|
||||||
{
|
window.setTimeout(() => $('#importfileinput').attr({disabled: true}), 0);
|
||||||
disabled: true,
|
|
||||||
}).val(html10n.get('pad.impexp.importing'));
|
|
||||||
|
|
||||||
window.setTimeout(() => {
|
|
||||||
$('#importfileinput').attr(
|
|
||||||
{
|
|
||||||
disabled: true,
|
|
||||||
});
|
|
||||||
}, 0);
|
|
||||||
$('#importarrow').stop(true, true).hide();
|
$('#importarrow').stop(true, true).hide();
|
||||||
$('#importstatusball').show();
|
$('#importstatusball').show();
|
||||||
return true;
|
return true;
|
||||||
|
@ -71,9 +60,7 @@ const padimpexp = (() => {
|
||||||
|
|
||||||
const importDone = () => {
|
const importDone = () => {
|
||||||
$('#importsubmitinput').removeAttr('disabled').val(html10n.get('pad.impexp.importbutton'));
|
$('#importsubmitinput').removeAttr('disabled').val(html10n.get('pad.impexp.importbutton'));
|
||||||
window.setTimeout(() => {
|
window.setTimeout(() => $('#importfileinput').removeAttr('disabled'), 0);
|
||||||
$('#importfileinput').removeAttr('disabled');
|
|
||||||
}, 0);
|
|
||||||
$('#importstatusball').hide();
|
$('#importstatusball').hide();
|
||||||
importClearTimeout();
|
importClearTimeout();
|
||||||
addImportFrames();
|
addImportFrames();
|
||||||
|
@ -109,9 +96,7 @@ const padimpexp = (() => {
|
||||||
|
|
||||||
if ($('#importexport .importmessage').is(':visible')) {
|
if ($('#importexport .importmessage').is(':visible')) {
|
||||||
$('#importmessagesuccess').fadeOut('fast');
|
$('#importmessagesuccess').fadeOut('fast');
|
||||||
$('#importmessagefail').fadeOut('fast', () => {
|
$('#importmessagefail').fadeOut('fast', () => showError(true));
|
||||||
showError(true);
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
showError();
|
showError();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue