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

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

Issue 2746363013: [MD Bookmarks] Add a drag and drop indicator to bookmarks. (Closed)
Patch Set: fix nit Created 3 years, 9 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/reducers.js
diff --git a/chrome/browser/resources/md_bookmarks/reducers.js b/chrome/browser/resources/md_bookmarks/reducers.js
index db9be760dc3f49e1e70c3de0f2d3d15d46e264e4..2a61ecf8de9446689c272321d1d91ebd7d3c98f9 100644
--- a/chrome/browser/resources/md_bookmarks/reducers.js
+++ b/chrome/browser/resources/md_bookmarks/reducers.js
@@ -257,7 +257,7 @@ cr.define('bookmarks', function() {
case 'clear-search':
// TODO(tsergeant): Return to the folder that was selected before the
// search.
- return nodes['0'].children[0];
+ return nodes[bookmarks.util.ROOT_NODE_ID].children[0];
default:
return selectedFolder;
}
@@ -276,9 +276,9 @@ cr.define('bookmarks', function() {
var modifications = {};
var currentId = id;
while (currentId) {
- if (closedFolders[currentId]) {
+ if (closedFolders[currentId])
modifications[currentId] = false;
- }
+
currentId = nodes[currentId].parentId;
}
« no previous file with comments | « chrome/browser/resources/md_bookmarks/list.html ('k') | chrome/browser/resources/md_bookmarks/shared_style.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698