Commit 9ba382d1 authored by merkulova's avatar merkulova Committed by Commit bot

Js fixed for proper status setting on HID screen.

BUG=461076

Review URL: https://codereview.chromium.org/960133002

Cr-Commit-Position: refs/heads/master@{#318225}
parent 2d649015
...@@ -169,16 +169,9 @@ login.createScreen('HIDDetectionScreen', 'hid-detection', function() { ...@@ -169,16 +169,9 @@ login.createScreen('HIDDetectionScreen', 'hid-detection', function() {
if (state == 'update') if (state == 'update')
return; return;
var deviceBlock = $(blockId); var deviceBlock = $(blockId);
for (var stateCase in this.CONNECTION) for (var key in this.CONNECTION) {
var stateCase = this.CONNECTION[key];
deviceBlock.classList.toggle(stateCase, stateCase == state); deviceBlock.classList.toggle(stateCase, stateCase == state);
// 'Continue' button available iff at least one device is connected,
if ((blockId in this.BLOCK) &&
(state == this.CONNECTION.CONNECTED ||
state == this.CONNECTION.PAIRED)) {
$('hid-continue-button').disabled = false;
} else {
$('hid-continue-button').disabled = true;
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment