mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
lint: Run eslint --fix
on src/
This commit is contained in:
parent
b8d07a42eb
commit
8e5fd19db2
109 changed files with 9061 additions and 10572 deletions
|
@ -20,33 +20,33 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
var padeditbar = require('./pad_editbar').padeditbar;
|
||||
var automaticReconnect = require('./pad_automatic_reconnect');
|
||||
const padeditbar = require('./pad_editbar').padeditbar;
|
||||
const automaticReconnect = require('./pad_automatic_reconnect');
|
||||
|
||||
var padmodals = (function() {
|
||||
var pad = undefined;
|
||||
var self = {
|
||||
init: function(_pad) {
|
||||
const padmodals = (function () {
|
||||
let pad = undefined;
|
||||
const self = {
|
||||
init(_pad) {
|
||||
pad = _pad;
|
||||
},
|
||||
showModal: function(messageId) {
|
||||
padeditbar.toggleDropDown("none", function() {
|
||||
$("#connectivity .visible").removeClass('visible');
|
||||
$("#connectivity ."+messageId).addClass('visible');
|
||||
showModal(messageId) {
|
||||
padeditbar.toggleDropDown('none', () => {
|
||||
$('#connectivity .visible').removeClass('visible');
|
||||
$(`#connectivity .${messageId}`).addClass('visible');
|
||||
|
||||
var $modal = $('#connectivity .' + messageId);
|
||||
const $modal = $(`#connectivity .${messageId}`);
|
||||
automaticReconnect.showCountDownTimerToReconnectOnModal($modal, pad);
|
||||
|
||||
padeditbar.toggleDropDown("connectivity");
|
||||
padeditbar.toggleDropDown('connectivity');
|
||||
});
|
||||
},
|
||||
showOverlay: function() {
|
||||
showOverlay() {
|
||||
// Prevent the user to interact with the toolbar. Useful when user is disconnected for example
|
||||
$("#toolbar-overlay").show();
|
||||
$('#toolbar-overlay').show();
|
||||
},
|
||||
hideOverlay() {
|
||||
$('#toolbar-overlay').hide();
|
||||
},
|
||||
hideOverlay: function() {
|
||||
$("#toolbar-overlay").hide();
|
||||
}
|
||||
};
|
||||
return self;
|
||||
}());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue