230370 - remove bookmark separator properties dialog p=mconnor

246431 - Add "New Bookmark" to the bookmarks context menu r=mconnor
This commit is contained in:
dean_tessman%hotmail.com 2004-07-15 00:14:02 +00:00
Родитель 4ef1db07ed
Коммит c61b5ad359
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -276,21 +276,21 @@ var BookmarksCommand = {
// bm_properties // bm_properties
switch (type) { switch (type) {
case "BookmarkSeparator": case "BookmarkSeparator":
commands = ["bm_newfolder", "bm_separator", commands = ["bm_newbookmark", "bm_newfolder", "bm_newseparator", "bm_separator",
"cut", "copy", "paste", "bm_separator", "cut", "copy", "paste", "bm_separator",
"delete", "bm_separator", "delete", "bm_separator",
"bm_properties"]; "bm_properties"];
break; break;
case "Bookmark": case "Bookmark":
commands = ["bm_open", "bm_openinnewwindow", "bm_openinnewtab", "bm_separator", commands = ["bm_open", "bm_openinnewwindow", "bm_openinnewtab", "bm_separator",
"bm_newfolder", "bm_separator", "bm_newbookmark", "bm_newfolder", "bm_newseparator", "bm_separator",
"cut", "copy", "paste", "bm_separator", "cut", "copy", "paste", "bm_separator",
"delete", "bm_separator", "delete", "bm_separator",
"bm_properties"]; "bm_properties"];
break; break;
case "Folder": case "Folder":
commands = ["bm_expandfolder", "bm_openfolder", "bm_managefolder", "bm_separator", commands = ["bm_expandfolder", "bm_openfolder", "bm_managefolder", "bm_separator",
"bm_newfolder", "bm_separator", "bm_newbookmark", "bm_newfolder", "bm_newseparator", "bm_separator",
"cut", "copy", "paste", "bm_separator", "cut", "copy", "paste", "bm_separator",
"delete", "bm_separator", "delete", "bm_separator",
"bm_properties"]; "bm_properties"];
@ -656,7 +656,7 @@ var BookmarksCommand = {
{ {
var selection = BookmarksUtils.getSelectionFromResource(aResource, aTarget.parent); var selection = BookmarksUtils.getSelectionFromResource(aResource, aTarget.parent);
var ok = BookmarksUtils.insertAndCheckSelection(aTxnType, selection, aTarget); var ok = BookmarksUtils.insertAndCheckSelection(aTxnType, selection, aTarget);
if (ok) { if (ok && aTxnType != "newseparator") {
ok = this.openBookmarkProperties(selection); ok = this.openBookmarkProperties(selection);
if (!ok) if (!ok)
BookmarksCommand.deleteBookmark(selection); BookmarksCommand.deleteBookmark(selection);