Properties and Rename should be disabled when separator is selected in bookmarks manager (73898). r=kerz sr=ben a=asa

This commit is contained in:
blakeross%telocity.com 2001-06-10 17:54:51 +00:00
parent 6d85b848e8
commit b97a6cafef

View File

@ -650,7 +650,8 @@ BookmarksTree.prototype = {
return true;
case "cmd_properties":
case "cmd_rename":
return numSelectedItems == 1;
seln = gBookmarksShell.tree.selectedItems;
return numSelectedItems == 1 && seln[0].getAttribute("type") != NC_NS + "BookmarkSeparator";
case "cmd_setnewbookmarkfolder":
seln = gBookmarksShell.tree.selectedItems;
var firstSelected = seln.length ? seln[0] : gBookmarksShell.tree;