зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
10ed2ea797
Коммит
2f0399f832
|
@ -62,7 +62,7 @@ function Init()
|
|||
function OnClick(event)
|
||||
{
|
||||
if( event.type == "click" &&
|
||||
( event.button != 1 || event.clickCount != 2 ) )
|
||||
( event.button != 1 || event.detail != 2 ) )
|
||||
return false;
|
||||
if( event.type == "keypress" && event.which != 13 )
|
||||
return false;
|
||||
|
|
|
@ -228,7 +228,7 @@ function Destruct() {
|
|||
function openURL(event, root)
|
||||
{
|
||||
if( event.type == "click" &&
|
||||
( event.button != 1 || event.clickCount != 2 ) )
|
||||
( event.button != 1 || event.detail != 2 ) )
|
||||
return false;
|
||||
else if( event.type == "keypress" && event.which != 13 )
|
||||
return false;
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
</popupset>
|
||||
|
||||
<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="PageRankColumn" rdf:resource="http://home.netscape.com/NC-rdf#PageRank"
|
||||
|
|
|
@ -771,7 +771,7 @@ function sidebarOpenURL(event, treeitem, root)
|
|||
mClickCount = 1;
|
||||
}
|
||||
|
||||
if ((event.button != 1) || (event.clickCount != mClickCount))
|
||||
if ((event.button != 1) || (event.detail != mClickCount))
|
||||
return(false);
|
||||
|
||||
if (treeitem.getAttribute("container") == "true")
|
||||
|
|
Загрузка…
Ссылка в новой задаче