diff options
Diffstat (limited to 'chrome/test/data/extensions/bookmarkmanager/main.html')
-rw-r--r-- | chrome/test/data/extensions/bookmarkmanager/main.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/test/data/extensions/bookmarkmanager/main.html b/chrome/test/data/extensions/bookmarkmanager/main.html index 8915a41..db688c3 100644 --- a/chrome/test/data/extensions/bookmarkmanager/main.html +++ b/chrome/test/data/extensions/bookmarkmanager/main.html @@ -1368,11 +1368,11 @@ function updateCommandsBasedOnSelection(e) { if (e.target == document.activeElement) { // Paste only needs to updated when the tree selection changes. var commandNames = ['copy', 'cut', 'delete', 'rename-folder', 'edit', - 'sort', 'add-new-bookmark', 'new-folder', 'show-in-folder', - 'open-in-new-tab', 'open-in-new-window', 'open-incognito-window'] + 'add-new-bookmark', 'new-folder', 'open-in-new-tab', + 'open-in-new-window', 'open-incognito-window']; if (e.target == tree) { - commandNames.push('paste'); + commandNames.push('paste', 'show-in-folder', 'sort'); } commandNames.forEach(function(baseId) { @@ -1568,6 +1568,9 @@ function handleCommand(e) { case 'paste-command': chrome.experimental.bookmarkManager.paste(list.parentId); break; + case 'sort-command': + chrome.experimental.bookmarkManager.sortChildren(list.parentId); + break; } } |