Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: chrome/browser/resources/md_bookmarks/command_manager.js

Issue 2956213002: [MD Bookmarks] Make disabled buttons in context menu do nothing when clicked. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_bookmarks/command_manager.js
diff --git a/chrome/browser/resources/md_bookmarks/command_manager.js b/chrome/browser/resources/md_bookmarks/command_manager.js
index 790fb62d25f78f89ebc83ab8ef47e1f07686d10f..a54978f4cea990805d44a7cdd1e4f752c1822111 100644
--- a/chrome/browser/resources/md_bookmarks/command_manager.js
+++ b/chrome/browser/resources/md_bookmarks/command_manager.js
@@ -459,6 +459,9 @@ cr.define('bookmarks', function() {
* @private
*/
onCommandClick_: function(e) {
+ if (e.currentTarget.getAttribute('disabled') != null)
+ return;
+
this.handle(
e.currentTarget.getAttribute('command'), assert(this.menuIds_));
this.closeCommandMenu();

Powered by Google App Engine
This is Rietveld 408576698