Fixing all (I think) drag and drop issues between the content area, the personal toolbar, and the bookmarks panel/manager. Includes the inability to drag a bookmark with no name, many links dragged to the bookmarks panel not having a title (79600), and bookmarks dragged to personal toolbar having names like "NC:BookmarksRoot" (85328). r=kerz sr=ben

This commit is contained in:
blakeross%telocity.com 2006-07-29 05:37:28 +00:00
Родитель 2a8662e526
Коммит f4b1d45e41
1 изменённых файлов: 5 добавлений и 7 удалений

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

@ -143,15 +143,13 @@ var contentAreaDNDObserver = {
// now create the flavour lists
aXferData.data = new TransferData();
if (urlstring && isAnchor) {
aXferData.data.addDataForFlavour("text/x-moz-url", urlstring + "\n" + titlestring);
}
aXferData.data.addDataForFlavour("text/unicode", isAnchor ? urlstring : titlestring);
aXferData.data.addDataForFlavour("text/html", htmlstring);
if (urlstring) {
aXferData.data.addDataForFlavour("text/x-moz-url", urlstring + "\n" + titlestring);
aXferData.data.addDataForFlavour("moz/rdfitem", urlstring + "\n" + titlestring);
}
else {
aXferData.data.addDataForFlavour("moz/rdfitem", titlestring);
}
// we use the url for text/unicode data if an anchor is being dragged, rather than
// the title text of the link or the alt text for an anchor image.
},