mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 43134 Dragging scrollbar thumb in the threadPane initiates a drag, fix the address book part. r=putterman
This commit is contained in:
parent
49892e9607
commit
af0a821c6d
@ -81,6 +81,10 @@ function BeginDragResultTree(event)
|
||||
|
||||
// if the click is on the tree proper, ignore it. We only care about clicks on items.
|
||||
|
||||
if (event.target.localName != "treecell" &&
|
||||
event.target.localName != "treeitem")
|
||||
return false;
|
||||
|
||||
var tree = resultsTree;
|
||||
if ( event.target == tree )
|
||||
return(true); // continue propagating the event
|
||||
@ -138,6 +142,10 @@ function DropOnDirectoryTree(event)
|
||||
{
|
||||
debugDump("DropOnTree\n");
|
||||
|
||||
if (event.target.localName != "treecell" &&
|
||||
event.target.localName != "treeitem")
|
||||
return false;
|
||||
|
||||
var RDF = GetRDFService();
|
||||
if (!RDF) return(false);
|
||||
|
||||
|
@ -31,7 +31,7 @@ Rights Reserved.
|
||||
datasources="rdf:addressdirectory rdf:addresscard"
|
||||
onselect="top.ResultsPaneSelectionChange(); document.commandDispatcher.updateCommands('tree-select');"
|
||||
onblur="goOnEvent(this,'blur')"
|
||||
onclick="if ( event.detail == 2 ) top.AbEditCard();"
|
||||
onclick="clickResultsTree(event);"
|
||||
containment="http://home.netscape.com/NC-rdf#CardChild"
|
||||
allownegativeassertions="false"
|
||||
coalesceduplicatearcs="false"
|
||||
|
@ -277,5 +277,12 @@ function AbDeleteDirectory()
|
||||
top.addressbook.deleteAddressBooks(dirTree.database, parentArray, dirTree.selectedItems);
|
||||
}
|
||||
|
||||
function clickResultsTree(event)
|
||||
{
|
||||
if (event.target.localName != "treecell" &&
|
||||
event.target.localName != "treeitem")
|
||||
return;
|
||||
|
||||
if ( event.detail == 2 ) top.AbEditCard();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user