[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:
Luiza Pagliari 2017-04-04 11:09:24 -03:00
parent ed029b599e
commit 009cd31243
7 changed files with 180 additions and 14 deletions

View file

@ -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;