diff options
| author | Jez Ng | 2012-08-04 12:23:56 -0700 | 
|---|---|---|
| committer | Jez Ng | 2012-08-04 12:29:27 -0700 | 
| commit | ee8ec26a6b4f3996bd94903b435ecafd30648c2d (patch) | |
| tree | 688b4c2f21d69086bf2bc81346a0129a65736a44 | |
| parent | 492c920082d31749aec5b201802e47d0e90263e7 (diff) | |
| download | vimium-ee8ec26a6b4f3996bd94903b435ecafd30648c2d.tar.bz2 | |
Miscellaneous cleanups.
* " -> " because my syntax highlighting gets confused
* Remove inline onclick handlers as part of manifest v2 upgrade
| -rw-r--r-- | background_scripts/commands.coffee | 2 | ||||
| -rw-r--r-- | options.html | 6 | ||||
| -rw-r--r-- | options.js | 3 | 
3 files changed, 7 insertions, 4 deletions
| diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 1180ef3f..0fa56e1a 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -13,7 +13,7 @@ Commands =    #    command passed to it. This is used to implement e.g. "closing of 3 tabs".    addCommand: (command, description, options) ->      if command of @availableCommands -      console.log(command, "is already defined! Check commands.js for duplicates.") +      console.log(command, "is already defined! Check commands.coffee for duplicates.")        return      options ||= {} diff --git a/options.html b/options.html index 52dbdef2..730c9bff 100644 --- a/options.html +++ b/options.html @@ -126,7 +126,7 @@                  map j scrollDown<br/>                  unmap j<br/>                  unmapAll<br/> -                " this is a comment<br/> +                " this is a comment<br/>                  # this is also a comment<br/>                </div>                <a href="#" id="showCommands">Show available commands.</a> @@ -214,8 +214,8 @@      </table>      <div id="buttonsPanel"> -      <button id="restoreSettings" onclick="restoreToDefaults()">Restore to Defaults</button> -      <button id="saveOptions" disabled="true" onclick="saveOptions()">Save Options</button> +      <button id="restoreSettings">Restore to Defaults</button> +      <button id="saveOptions" disabled="true">Save Options</button>      </div>      <br/> @@ -29,6 +29,9 @@ document.addEventListener("DOMContentLoaded", function() {      showHelpDialog(        chrome.extension.getBackgroundPage().helpDialogHtml(true, true, "Command Listing"), frameId);    }, false); + +  document.getElementById("restoreSettings").addEventListener("click", restoreToDefaults); +  document.getElementById("saveOptions").addEventListener("click", saveOptions);  });  function onOptionKeyup(event) { | 
