Chromium Code Reviews| Index: chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
| diff --git a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
| index 9b9ba5dad8b5dc2ba8c528ddea38566061751d5e..b99aae3fe5155f71d002603e191c44a2a4506f81 100644 |
| --- a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
| +++ b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
| @@ -127,15 +127,24 @@ Polymer({ |
| }, |
| /** |
| - * Changes the color of the submit button if PIN is ready. |
| + * Changes the color of input text if it is not empty. |
|
jdufault
2016/08/08 21:12:42
of the* input
sammiequon
2016/08/08 23:36:12
Done.
|
| * @param {string} value |
| * @private |
| */ |
| - getSubmitClass_: function(value) { |
| + getPasswordReadyClass_: function(value) { |
| return value.length > 0 ? 'ready-background' : ''; |
| }, |
| /** |
| + * Disables the submit and backspace button if nothing is entered. |
| + * @param {string} value |
| + * @private |
| + */ |
| + hasNoInput_: function(value) { |
| + return value.length == 0; |
| + }, |
| + |
| + /** |
| * Computes whether the input type for the pin input should be password or |
| * numerical. |
| * @param {boolean} enablePassword |
| @@ -178,7 +187,7 @@ Polymer({ |
| * @param {boolean} submitEnabled |
| * @private |
| */ |
| - getSubmitHiddenClass_: function(submitEnabled) { |
| + getSubmitClass_: function(submitEnabled) { |
| return submitEnabled ? '' : 'submit-button-hidden'; |
| } |
| }); |