fix an oops in last nights checkin. sr=hewitt

git-svn-id: svn://10.0.0.236/trunk@113576 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blakeross%telocity.com 2002-02-03 18:27:09 +00:00
parent f89a91a9e4
commit 39cb58daff
2 changed files with 7 additions and 2 deletions

View File

@ -223,6 +223,12 @@ var historyDNDObserver = {
}
};
function validClickConditions(event)
{
return (event.button == 0 &&
event.originalTarget.localName == 'outlinerchildren');
}
function OpenURL(aInNewWindow)
{
var currentIndex = gHistoryOutliner.currentIndex;

View File

@ -78,8 +78,7 @@
onselect="this.outlinerBoxObject.view.selectionChanged();
historyOnSelect();"
ondraggesture="if (event.originalTarget.localName == 'outlinerchildren') nsDragAndDrop.startDrag(event, historyDNDObserver);"
ondblclick="if (event.button == 0 &&
event.originalTarget.localName == 'outlinerchildren') OpenURL(event.ctrlKey || event.metaKey);">
ondblclick="if (validClickConditions(event)) OpenURL(event.ctrlKey || event.metaKey);">
<template>
<rule>
<outlinerchildren>