diff options
| author | Caleb Spare | 2012-08-22 16:46:05 -0700 |
|---|---|---|
| committer | Caleb Spare | 2012-08-22 16:46:05 -0700 |
| commit | 429730c4769cf7e0db05930680810b76921d147d (patch) | |
| tree | 8a83c975fd8ac0066b350af58db0623ceb0686dc /options | |
| parent | 9a538f875aa8de8c2cf602bf86ec6eaa4e40b939 (diff) | |
| download | vimium-429730c4769cf7e0db05930680810b76921d147d.tar.bz2 | |
Style tweak to options unload prompt.
Diffstat (limited to 'options')
| -rw-r--r-- | options/options.coffee | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/options/options.coffee b/options/options.coffee index 248750ca..2b06e5f7 100644 --- a/options/options.coffee +++ b/options/options.coffee @@ -28,8 +28,7 @@ document.addEventListener "DOMContentLoaded", -> document.getElementById("restoreSettings").addEventListener "click", restoreToDefaults document.getElementById("saveOptions").addEventListener "click", saveOptions -window.onbeforeunload = -> - if $("saveOptions").disabled then null else "You have unsaved changes to options." +window.onbeforeunload = -> "You have unsaved changes to options." unless $("saveOptions").disabled onOptionKeyup = (event) -> if (event.target.getAttribute("type") isnt "checkbox" and |
