From 979f956e7e47f4251a5854483394b8ff47d913f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Wed, 6 Sep 2017 14:45:34 +0200 Subject: [PATCH] fixed regression - buttons not sending commands --- html_orig/js/app.js | 2 +- html_orig/jssrc/term.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html_orig/js/app.js b/html_orig/js/app.js index c1980f7..2673280 100644 --- a/html_orig/js/app.js +++ b/html_orig/js/app.js @@ -2238,7 +2238,7 @@ var Input = (function() { _initKeys(); // Button presses - qsa('#buttons button').forEach(function(s) { + qsa('#action-buttons button').forEach(function(s) { s.addEventListener('click', function() { sendBtnMsg(+this.dataset['n']); }); diff --git a/html_orig/jssrc/term.js b/html_orig/jssrc/term.js index 1f3f277..816b4ff 100644 --- a/html_orig/jssrc/term.js +++ b/html_orig/jssrc/term.js @@ -638,7 +638,7 @@ var Input = (function() { _initKeys(); // Button presses - qsa('#buttons button').forEach(function(s) { + qsa('#action-buttons button').forEach(function(s) { s.addEventListener('click', function() { sendBtnMsg(+this.dataset['n']); });