mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
[feature] Create option to automatically reconnect after a few seconds
On some erros that display a modal with "Force reconnect" button, allow Etherpad to automatically reload pad after a few seconds. Amount of seconds is defined on settings.json. Still need to create tests for this feature, and implement i18n.
This commit is contained in:
parent
ed029b599e
commit
009cd31243
7 changed files with 180 additions and 14 deletions
|
@ -517,6 +517,23 @@ table#otheruserstable {
|
|||
display: block;
|
||||
}
|
||||
|
||||
/* styles for the automatic reconnection timer: */
|
||||
#connectivity .visible.with_reconnect_timer button,
|
||||
#connectivity .visible.with_reconnect_timer .reconnecttimer * {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#connectivity .with_reconnect_timer .hidden,
|
||||
#connectivity .with_reconnect_timer #defaulttext.hidden,
|
||||
#connectivity .with_reconnect_timer button.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#connectivity .with_reconnect_timer #cancelreconnect {
|
||||
margin-left: 10px;
|
||||
}
|
||||
/* end of styles for the automatic reconnection timer */
|
||||
|
||||
#reconnect_form button {
|
||||
font-size: 12pt;
|
||||
padding: 5px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue