зеркало из https://github.com/mozilla/pjs.git
Bug 418156 - Attempting to Drag and Drop in Bookmarks menu results in broken close windows button. patch by Bill Gianopoulos <bill@wg9s.com>, r=me.
This commit is contained in:
Родитель
c392d9f3e8
Коммит
a49cb9867e
|
@ -381,8 +381,7 @@
|
|||
label="&bookmarksMenu.label;" accesskey="&bookmarksMenu.accesskey;"
|
||||
ondragenter="PlacesMenuDNDController.onBookmarksMenuDragEnter(event);"
|
||||
ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDropHandler);"
|
||||
ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDropHandler);"
|
||||
ondragexit="PlacesMenuDNDController.onDragExit(event);">
|
||||
ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDropHandler);">
|
||||
<menupopup id="bookmarksMenuPopup"
|
||||
type="places" asyncinit="true"
|
||||
place="place:folder=2&expandQueries=1"
|
||||
|
|
|
@ -817,21 +817,6 @@ var PlacesMenuDNDController = {
|
|||
this._springLoadDelay, [event]);
|
||||
},
|
||||
|
||||
/**
|
||||
* When the user drags out of the Bookmarks Menu or Toolbar, set a timer to
|
||||
* manually close the popup chain that was dragged out of. We need to do this
|
||||
* since the global popup dismissal listener does not handle multiple extant
|
||||
* popup chains well. See bug 332845 for more information.
|
||||
*/
|
||||
onDragExit: function PMDC_onDragExit(event) {
|
||||
// Ensure that we don't set multiple timers if there's one already set.
|
||||
if ("closeTime" in this._timers)
|
||||
return;
|
||||
|
||||
this._setDragTimer("closeTime", this._closePopups,
|
||||
this._springLoadDelay, [event.target]);
|
||||
},
|
||||
|
||||
/**
|
||||
* Creates a timer that will fire during a drag and drop operation.
|
||||
* @param id
|
||||
|
|
|
@ -380,7 +380,6 @@
|
|||
onclick="BookmarksEventHandler.onClick(event);"
|
||||
oncommand="BookmarksEventHandler.onCommand(event);"
|
||||
onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"
|
||||
ondragexit="PlacesMenuDNDController.onDragExit(event);"
|
||||
tooltip="btTooltip"/>
|
||||
</toolbaritem>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче