Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 (function() { | 5 (function() { |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Names of the radio buttons which allow the user to choose their encryption | 8 * Names of the radio buttons which allow the user to choose their encryption |
| 9 * mechanism. | 9 * mechanism. |
| 10 * @enum {string} | 10 * @enum {string} |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 413 validateCreatedPassphrases_: function() { | 413 validateCreatedPassphrases_: function() { |
| 414 var emptyPassphrase = !this.passphrase_; | 414 var emptyPassphrase = !this.passphrase_; |
| 415 var mismatchedPassphrase = this.passphrase_ != this.confirmation_; | 415 var mismatchedPassphrase = this.passphrase_ != this.confirmation_; |
| 416 | 416 |
| 417 this.$$('#passphraseInput').invalid = emptyPassphrase; | 417 this.$$('#passphraseInput').invalid = emptyPassphrase; |
| 418 this.$$('#passphraseConfirmationInput').invalid = | 418 this.$$('#passphraseConfirmationInput').invalid = |
| 419 !emptyPassphrase && mismatchedPassphrase; | 419 !emptyPassphrase && mismatchedPassphrase; |
| 420 | 420 |
| 421 return !emptyPassphrase && !mismatchedPassphrase; | 421 return !emptyPassphrase && !mismatchedPassphrase; |
| 422 }, | 422 }, |
| 423 | |
| 424 /** | |
| 425 * @param {!Event} event | |
|
dpapad
2016/11/21 18:53:29
@private
scottchen
2016/11/21 19:09:02
Done.
| |
| 426 */ | |
| 427 onLearnMoreTap_: function(event) { | |
| 428 // Stop the propagation of events, so that clicking on links inside | |
| 429 // checkbox labels won't change the checkbox value. | |
| 430 event.stopPropagation(); | |
| 431 } | |
| 423 }); | 432 }); |
| 424 | 433 |
| 425 })(); | 434 })(); |
| OLD | NEW |