From a82315e8f2f65012b111c36d7bf667992683cec8 Mon Sep 17 00:00:00 2001 From: NaitLee Date: Thu, 16 Sep 2021 13:25:34 +0800 Subject: [PATCH] Fix that cannot select device correctly --- www/main.js | 1 + www/print-image.html | 1 + 2 files changed, 2 insertions(+) diff --git a/www/main.js b/www/main.js index f763ee0..d15ae4a 100644 --- a/www/main.js +++ b/www/main.js @@ -10,6 +10,7 @@ let bluetooth_mac_input = document.getElementById('bt_mac'); function switchDevice() { bluetooth_mac_input.value = device_selection.selectedOptions[0].value; } +device_selection.addEventListener('input', switchDevice); if (device_selection != null && refresh_device_button != null && bluetooth_mac_input != null) { refresh_device_button.addEventListener('click', event => { notice(i18N.get('Searching devices. Please wait for 5 seconds.')); diff --git a/www/print-image.html b/www/print-image.html index 1c8f1a0..e4fb44d 100644 --- a/www/print-image.html +++ b/www/print-image.html @@ -36,6 +36,7 @@ Threshold:=阈值: Please preview image first=请先预览图像 Searching devices. Please wait for 5 seconds.=正在查找设备。请等候 5 秒。 OK=完成 +Printing, please wait.=打印中,请稍候。