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

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

Issue 835973004: Fix for 'New Folder' is not getting added to chrome://bookmarks/ through 'Organize' menu after addi… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 cfab1ac1d80f715105d60cd16b96946d82f4afbf..7a26bc90f4be8b4b0d4f302303e470584ef5a11e 100644
--- a/chrome/browser/resources/bookmark_manager/js/main.js
+++ b/chrome/browser/resources/bookmark_manager/js/main.js
@@ -1034,7 +1034,7 @@ function newFolder(opt_target) {
// Callback is called after tree and list data model updated.
function createFolder(callback) {
if (selectedItem && document.activeElement != bmm.tree &&
- !bmm.isFolder(selectedItem)) {
+ !bmm.isFolder(selectedItem) && selectedItem.id != 'new') {
newIndex = bmm.list.dataModel.indexOf(selectedItem) + 1;
}
chrome.bookmarks.create({
« 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