Fix drag from advanced search window

This commit is contained in:
Dan Stillman 2010-12-26 03:08:35 +00:00
parent 1b7e2b412b
commit 642a857a29
3 changed files with 3 additions and 5 deletions

View file

@ -72,7 +72,7 @@ var ZoteroAdvancedSearch = new function() {
isLibrary: function () { return false; },
isCollection: function () { return false; },
isSearch: function () { return true; },
isShare: function () { return true; },
isShare: function () { return false; },
isTrash: function () { return false; }
}

View file

@ -22,8 +22,6 @@
<script src="include.js"/>
<script src="advancedSearch.js"/>
<script src="chrome://global/content/nsDragAndDrop.js"/>
<script src="chrome://global/content/nsTransferable.js"/>
<vbox id="zotero-search-box-container" flex="1">
@ -39,7 +37,7 @@
<tree id="zotero-items-tree" flex="1" hidecolumnpicker="true" seltype="multiple"
ondblclick="ZoteroAdvancedSearch.onDblClick(event, this)"
ondraggesture="if (event.target.localName == 'treechildren') { Zotero.debug('starting'); ZoteroAdvancedSearch.startDrag(event, ZoteroAdvancedSearch.itemsView); }">
ondragstart="if (event.target.localName == 'treechildren') { ZoteroAdvancedSearch.startDrag(event, ZoteroAdvancedSearch.itemsView); }">
<treecols>
<treecol
id="zotero-items-column-title" primary="true"

View file

@ -1777,7 +1777,7 @@ Zotero.ItemTreeCommandController.prototype.onEvent = function(evt)
/**
* Start a drag using nsDragAndDrop.js or HTML 5 Drag and Drop
*/
Zotero.ItemTreeView.prototype.onDragStart = function (event, transferData, action) {
Zotero.ItemTreeView.prototype.onDragStart = function (event) {
// Quick implementation of dragging of XML item format
if (this._itemGroup.isShare()) {
var items = this.getSelectedItems();