mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Disallow inline editing on separators.
This commit is contained in:
parent
bbd1faf6ec
commit
27b574b957
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user