Bug 365268 - Get rid of historyDNDObserver. r=sspitzer.

This commit is contained in:
mozilla.mano%sent.com 2006-12-29 00:30:19 +00:00
Родитель dcb0bd5585
Коммит e3190d34f9
2 изменённых файлов: 0 добавлений и 20 удалений

Просмотреть файл

@ -141,25 +141,6 @@ function GroupBy(groupingType)
searchHistory(gSearchBox.value); searchHistory(gSearchBox.value);
} }
var historyDNDObserver = {
onDragStart: function (aEvent, aXferData, aDragAction)
{
var node = gHistoryTree.selectedURINode;
if (!node)
return false;
var url = node.uri;
var title = node.title;
var htmlString = "<A HREF='" + url + "'>" + title + "</A>";
aXferData.data = new TransferData();
aXferData.data.addDataForFlavour("text/unicode", url);
aXferData.data.addDataForFlavour("text/html", htmlString);
aXferData.data.addDataForFlavour("text/x-moz-url", url + "\n" + title);
return true;
}
};
function collapseExpand() function collapseExpand()
{ {
var currentIndex = gHistoryTree.currentIndex; var currentIndex = gHistoryTree.currentIndex;

Просмотреть файл

@ -151,7 +151,6 @@
context="historyContextMenu" context="historyContextMenu"
onkeypress="if (event.keyCode == 13) openURL(event);" onkeypress="if (event.keyCode == 13) openURL(event);"
hidecolumnpicker="true" hidecolumnpicker="true"
ondraggesture="if (event.originalTarget.localName == 'treechildren') nsDragAndDrop.startDrag(event, historyDNDObserver);"
onclick="handleHistoryClick(event);"> onclick="handleHistoryClick(event);">
<treecols> <treecols>
<treecol id="title" flex="1" primary="true" hideheader="true"/> <treecol id="title" flex="1" primary="true" hideheader="true"/>