diff options
| author | Phil Crosby | 2010-01-18 00:49:23 -0800 |
|---|---|---|
| committer | Phil Crosby | 2010-01-18 00:49:23 -0800 |
| commit | 681f939c063a66cefa21b7eda63fa7256a7560de (patch) | |
| tree | fb82567da5368cccd74a05c92d724ec76d6ca38a /options.html | |
| parent | 3620c4792489c1b4d0b76f80e0ad8b43808eec45 (diff) | |
| download | vimium-681f939c063a66cefa21b7eda63fa7256a7560de.tar.bz2 | |
Don't enable the save button when tabbing through fields on the Options page.
Diffstat (limited to 'options.html')
| -rw-r--r-- | options.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/options.html b/options.html index 3f8e731f..29ff949c 100644 --- a/options.html +++ b/options.html @@ -62,10 +62,15 @@ function initializeOptions() { populateOptions(); for (var i = 0; i < editableFields.length; i++) - $(editableFields[i]).addEventListener("change", enableSaveButton, false); + $(editableFields[i]).addEventListener("keydown", onOptionKeydown, false); $("advancedOptions").addEventListener("click", openAdvancedOptions, false); } + function onOptionKeydown(event) { + if (event.keyCode > 31) // Ignore modifiers and TAB. + enableSaveButton(); + } + function enableSaveButton() { $("saveOptions").removeAttribute("disabled"); } // Saves options to localStorage. |
