mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
Updating mozilla to DOM Level 2 events support. Fixes for bug 34722, 35378, 8411, 10330, plus some others that weren't filed.
This commit is contained in:
parent
a74dade724
commit
fa3292facf
@ -62,7 +62,7 @@ function Init()
|
|||||||
function OnClick(event)
|
function OnClick(event)
|
||||||
{
|
{
|
||||||
if( event.type == "click" &&
|
if( event.type == "click" &&
|
||||||
( event.button != 1 || event.clickCount != 2 ) )
|
( event.button != 1 || event.detail != 2 ) )
|
||||||
return false;
|
return false;
|
||||||
if( event.type == "keypress" && event.which != 13 )
|
if( event.type == "keypress" && event.which != 13 )
|
||||||
return false;
|
return false;
|
||||||
|
@ -228,7 +228,7 @@ function Destruct() {
|
|||||||
function openURL(event, root)
|
function openURL(event, root)
|
||||||
{
|
{
|
||||||
if( event.type == "click" &&
|
if( event.type == "click" &&
|
||||||
( event.button != 1 || event.clickCount != 2 ) )
|
( event.button != 1 || event.detail != 2 ) )
|
||||||
return false;
|
return false;
|
||||||
else if( event.type == "keypress" && event.which != 13 )
|
else if( event.type == "keypress" && event.which != 13 )
|
||||||
return false;
|
return false;
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
</popupset>
|
</popupset>
|
||||||
|
|
||||||
<tree id="internetresultstree" ref="" flex="100%" datasources="rdf:internetsearch" context="contextual"
|
<tree id="internetresultstree" ref="" flex="100%" datasources="rdf:internetsearch" context="contextual"
|
||||||
onclick="if (event.clickCount == 2) return searchResultsOpenURL(event, event.target.parentNode.parentNode); else return doResultClick(event.target.parentNode.parentNode);">
|
onclick="if (event.detail == 2) return searchResultsOpenURL(event, event.target.parentNode.parentNode); else return doResultClick(event.target.parentNode.parentNode);">
|
||||||
|
|
||||||
<treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
|
<treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
|
||||||
<treecol id="PageRankColumn" rdf:resource="http://home.netscape.com/NC-rdf#PageRank"
|
<treecol id="PageRankColumn" rdf:resource="http://home.netscape.com/NC-rdf#PageRank"
|
||||||
|
@ -771,7 +771,7 @@ function sidebarOpenURL(event, treeitem, root)
|
|||||||
mClickCount = 1;
|
mClickCount = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((event.button != 1) || (event.clickCount != mClickCount))
|
if ((event.button != 1) || (event.detail != mClickCount))
|
||||||
return(false);
|
return(false);
|
||||||
|
|
||||||
if (treeitem.getAttribute("container") == "true")
|
if (treeitem.getAttribute("container") == "true")
|
||||||
|
Loading…
Reference in New Issue
Block a user