lint: Run eslint --fix on src/

This commit is contained in:
Richard Hansen 2020-11-23 13:24:19 -05:00 committed by John McLear
parent b8d07a42eb
commit 8e5fd19db2
109 changed files with 9061 additions and 10572 deletions

View file

@ -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;
}());