Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Sep 3, 2024
1 parent 7f2b95b commit ade2f2e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions web/skins/classic/views/js/montage.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ function handleClick(evt) {
evt.preventDefault();
var id;

//We are looking for an object with an ID, because there may be another element in the button.
// We are looking for an object with an ID, because there may be another element in the button.
const obj = evt.target.id ? evt.target : evt.target.parentElement;

if (mode == EDITING || obj.className.includes('btn-zoom-out') || obj.className.includes('btn-zoom-in')) return;
Expand Down Expand Up @@ -828,10 +828,8 @@ function on_scroll() {

const isOut = isOutOfViewport(monitor.getElement());
if (!isOut.all) {
console.log("Starting ",monitor);
monitor.start();
} else if ( monitor.started ) {
console.log("Stopping ",monitor);
monitor.stop();
}
} // end foreach monitor
Expand Down Expand Up @@ -906,7 +904,7 @@ function addEvents(grid, id) {

elementResize();
})
.on('added removed', function(event) {
.on('added removed', function(event) {
//let str = '';
//items.forEach(function(item) { str += ' (' + item.x + ',' + item.y + ' ' + item.w + 'x' + item.h + ')'; });
//console.log("INFO==>", g + event.type + ' ' + items.length + ' items (x,y w h):' + str );
Expand Down Expand Up @@ -1071,7 +1069,6 @@ function checkEndMonitorsPlaced() {
let monitorsEndMoving = true;
//Check if all monitors are in their places
for (let i = 0, length = movableMonitorData.length; i < length; i++) {

if (movableMonitorData[i]) { //There may be empty elements
if (!movableMonitorData[i].stop) {
//Monitor is still moving
Expand Down

0 comments on commit ade2f2e

Please sign in to comment.