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..373e28230af061d0b65a6892ccea746fd944c7fa 100644 |
--- a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
+++ b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
@@ -127,12 +127,21 @@ Polymer({ |
}, |
/** |
- * Changes the color of the submit button if PIN is ready. |
+ * Changes the color of the input text if it is not empty. |
* @param {string} value |
* @private |
*/ |
- getSubmitClass_: function(value) { |
- return value.length > 0 ? 'ready-background' : ''; |
+ getContentClass_: function(value) { |
+ return value.length > 0 ? 'has-content' : ''; |
jdufault
2016/08/25 23:57:26
Can these type of toggles be done by using an attr
sammiequon
2016/08/26 01:20:44
Done.
|
+ }, |
+ |
+ /** |
+ * Disables the submit and backspace button if nothing is entered. |
+ * @param {string} value |
+ * @private |
+ */ |
+ hasInput_: function(value) { |
+ return value.length > 0; |
}, |
/** |
@@ -178,7 +187,7 @@ Polymer({ |
* @param {boolean} submitEnabled |
* @private |
*/ |
- getSubmitHiddenClass_: function(submitEnabled) { |
+ getSubmitClass_: function(submitEnabled) { |
return submitEnabled ? '' : 'submit-button-hidden'; |
} |
}); |