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

Unified Diff: chrome/browser/resources/bookmark_manager/js/main.js

Issue 1130143002: Paste can not happen when search item is selected in tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/bookmark_manager/js/main.js
diff --git a/chrome/browser/resources/bookmark_manager/js/main.js b/chrome/browser/resources/bookmark_manager/js/main.js
index 6b5ef4173f41bc4dd801481012e50daa7dd42a00..1c97b64eb7bdce8754e4441e869099bd4cadf2e5 100644
--- a/chrome/browser/resources/bookmark_manager/js/main.js
+++ b/chrome/browser/resources/bookmark_manager/js/main.js
@@ -435,7 +435,8 @@ function updatePasteCommand(opt_f) {
var promises = [];
// The folders menu.
- if (bmm.tree.selectedItem) {
+ // We can not paste into search item in tree.
+ if (bmm.tree.selectedItem && bmm.tree.selectedItem != searchTreeItem) {
promises.push(new Promise(function(resolve) {
var id = bmm.tree.selectedItem.bookmarkId;
chrome.bookmarkManagerPrivate.canPaste(id, function(canPaste) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698