Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit 2bd1c0c

Browse files
committed
fix lint errors
Change-Id: I0d70b9b94845367bbab4c4390882c5368aee18cf
1 parent efaef7b commit 2bd1c0c

File tree

2 files changed

+27
-14
lines changed

2 files changed

+27
-14
lines changed

src/js/core.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -693,15 +693,24 @@ const photoBooth = (function () {
693693
const qrCodeModal = $('#qrCode');
694694
photoboothTools.modal.empty(qrCodeModal);
695695
const body = qrCodeModal.find('.modal__body');
696-
$('<button>').on('click touchstart', function(e) {
697-
photoboothTools.modal.close('#qrCode');
698-
}).append($('<i>').addClass('fa fa-times')).css('float', 'right').appendTo(body);
699-
$('<img src="api/qrcode.php?filename=' + filename + '"/>').on('load', function () {
700-
$('<p>')
701-
.css('max-width', this.width + 'px')
702-
.html(photoboothTools.getTranslation('qrHelp') + '</br><b>' + config.webserver.ssid + '</b>')
703-
.appendTo(body);
704-
}).appendTo(body);
696+
$('<button>')
697+
.on('click touchstart', function (ev) {
698+
ev.preventDefault();
699+
ev.stopPropagation();
700+
701+
photoboothTools.modal.close('#qrCode');
702+
})
703+
.append($('<i>').addClass('fa fa-times'))
704+
.css('float', 'right')
705+
.appendTo(body);
706+
$('<img src="api/qrcode.php?filename=' + filename + '"/>')
707+
.on('load', function () {
708+
$('<p>')
709+
.css('max-width', this.width + 'px')
710+
.html(photoboothTools.getTranslation('qrHelp') + '</br><b>' + config.webserver.ssid + '</b>')
711+
.appendTo(body);
712+
})
713+
.appendTo(body);
705714

706715
// Add Print Link
707716
$(document).off('click touchstart', '.printbtn');

src/js/photoinit.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,15 @@ function initPhotoSwipeFromDOM(gallerySelector) {
251251
let img = gallery.currItem.src;
252252
img = img.split('\\').pop().split('/').pop();
253253

254-
$('<button>').on('click touchstart', function(e) {
255-
e.preventDefault();
256-
e.stopPropagation();
257-
$('.pswp__qr').empty().removeClass('qr-active').fadeOut('fast');
258-
}).append($('<i>').addClass('fa fa-times')).css('float', 'right').appendTo(pswpQR);
254+
$('<button>')
255+
.on('click touchstart', function (ev) {
256+
ev.preventDefault();
257+
ev.stopPropagation();
258+
$('.pswp__qr').empty().removeClass('qr-active').fadeOut('fast');
259+
})
260+
.append($('<i>').addClass('fa fa-times'))
261+
.css('float', 'right')
262+
.appendTo(pswpQR);
259263
$('<img>')
260264
.attr('src', 'api/qrcode.php?filename=' + img)
261265
.appendTo(pswpQR);

0 commit comments

Comments
 (0)