From 1dbfa0790a6cb6a40566528e38c3d2dd9fbde594 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sat, 24 Apr 2021 01:40:52 +0200 Subject: [PATCH] web: fix eslint errors --- web/skins/classic/js/skin.js | 1 - web/skins/classic/views/js/watch.js | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/skins/classic/js/skin.js b/web/skins/classic/js/skin.js index d7f6da27e..438c0e6bc 100644 --- a/web/skins/classic/js/skin.js +++ b/web/skins/classic/js/skin.js @@ -148,7 +148,6 @@ function dataOnClick() { window[fnName](ev); }; }); - } // 'data-on-click-true' calls the global function in the attribute value with no arguments when a click happens. diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index 72a17197b..9a5a4500b 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -619,9 +619,9 @@ function getControlResponse(respObj, respText) { function controlCmd(event) { button = event.target; - -console.log(event); -if (event.type !='mouseup') { + + console.log(event); + if (event.type !='mouseup') { control = button.getAttribute('value'); } else { console.log('stop');