summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-15 22:35:48 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-15 22:35:48 +0000
commit325f65c53c04ec01fd1bde7a88861d31f17f00d6 (patch)
tree2e6e1680d44a227c427bc603fa33afbec73aca24
parentdb83b4d379ccb5105e80ba200287ed1fffe5f9ed (diff)
downloadchromium_src-325f65c53c04ec01fd1bde7a88861d31f17f00d6.zip
chromium_src-325f65c53c04ec01fd1bde7a88861d31f17f00d6.tar.gz
chromium_src-325f65c53c04ec01fd1bde7a88861d31f17f00d6.tar.bz2
Don't allow empty credit cards to be added via Autofill settings.
BUG=93784 TEST=none Review URL: http://codereview.chromium.org/7892049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101400 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/resources/options/autofill_edit_creditcard_overlay.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js b/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js
index 28e6c7f..8402a10 100644
--- a/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js
+++ b/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js
@@ -142,6 +142,9 @@ cr.define('options', function() {
$('credit-card-number').value = '';
$('expiration-month').selectedIndex = 0;
$('expiration-year').selectedIndex = 0;
+
+ // Reset the enabled status of the 'Ok' button.
+ this.inputFieldChanged_();
},
/**