diff options
| -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) { |
