зеркало из https://github.com/mozilla/gecko-dev.git
Bug 365268 - Get rid of historyDNDObserver. r=sspitzer.
This commit is contained in:
Родитель
dcb0bd5585
Коммит
e3190d34f9
|
@ -141,25 +141,6 @@ function GroupBy(groupingType)
|
|||
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()
|
||||
{
|
||||
var currentIndex = gHistoryTree.currentIndex;
|
||||
|
|
|
@ -151,7 +151,6 @@
|
|||
context="historyContextMenu"
|
||||
onkeypress="if (event.keyCode == 13) openURL(event);"
|
||||
hidecolumnpicker="true"
|
||||
ondraggesture="if (event.originalTarget.localName == 'treechildren') nsDragAndDrop.startDrag(event, historyDNDObserver);"
|
||||
onclick="handleHistoryClick(event);">
|
||||
<treecols>
|
||||
<treecol id="title" flex="1" primary="true" hideheader="true"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче