Disallow inline editing on separators.

This commit is contained in:
rjc%netscape.com 1999-07-15 01:16:38 +00:00
parent bbd1faf6ec
commit 27b574b957
2 changed files with 14 additions and 0 deletions

View File

@ -70,6 +70,13 @@ function OpenURL(event, node)
function DoSingleClick(event, node)
{
var type = node.parentNode.parentNode.getAttribute('type');
if (type == "http://home.netscape.com/NC-rdf#BookmarkSeparator")
{
// don't allow inline editing of separators
return(false);
}
gEditNode = node;
// edit node if we don't get a double-click in less than 1/2 second

View File

@ -70,6 +70,13 @@ function OpenURL(event, node)
function DoSingleClick(event, node)
{
var type = node.parentNode.parentNode.getAttribute('type');
if (type == "http://home.netscape.com/NC-rdf#BookmarkSeparator")
{
// don't allow inline editing of separators
return(false);
}
gEditNode = node;
// edit node if we don't get a double-click in less than 1/2 second