diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-08 21:01:52 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-08 21:01:52 +0000 |
commit | 1784e83a07f691ac0caa78d32eaf527cfe02b834 (patch) | |
tree | bef5aae98152a1d2835cd321cd715dcd4ce8205f /chrome/browser/resources | |
parent | b7f044b62aa5547ecb4a6862c4a7b3fa5ec83de3 (diff) | |
download | chromium_src-1784e83a07f691ac0caa78d32eaf527cfe02b834.zip chromium_src-1784e83a07f691ac0caa78d32eaf527cfe02b834.tar.gz chromium_src-1784e83a07f691ac0caa78d32eaf527cfe02b834.tar.bz2 |
Add a disable button to the Extension management UI.
TEST=Try installing and/or loading some extensions, and toggling between enable and disable in the management UI (chrome://extensions).
BUG=12122
Review URL: http://codereview.chromium.org/199018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25659 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r-- | chrome/browser/resources/extensions_ui.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/chrome/browser/resources/extensions_ui.html b/chrome/browser/resources/extensions_ui.html index 0542d1c..0c9273b 100644 --- a/chrome/browser/resources/extensions_ui.html +++ b/chrome/browser/resources/extensions_ui.html @@ -247,11 +247,11 @@ function handleReloadExtension(node) { } /** - * Handles a 'reenable' button getting clicked. + * Handles a 'enable' or 'disable' button getting clicked. */ -function handleEnableExtension(node) { +function handleEnableExtension(node, enable) { // Tell the C++ ExtensionDOMHandler to reload the extension. - chrome.send('enable', [node.extensionId]); + chrome.send('enable', [node.extensionId, String(enable)]); requestExtensionsData(); } @@ -325,8 +325,13 @@ function autoUpdate() { <div class="extension-actions"> <button jsvalues=".extensionId:id" + jsdisplay="enabled" + onclick="handleEnableExtension(this, false)" + >Disable</button> + <button + jsvalues=".extensionId:id" jsdisplay="!enabled" - onclick="handleEnableExtension(this)" + onclick="handleEnableExtension(this, true)" >Enable</button> <button jsvalues=".extensionId:id" |