Fix drag from advanced search window
This commit is contained in:
parent
1b7e2b412b
commit
642a857a29
3 changed files with 3 additions and 5 deletions
|
@ -72,7 +72,7 @@ var ZoteroAdvancedSearch = new function() {
|
||||||
isLibrary: function () { return false; },
|
isLibrary: function () { return false; },
|
||||||
isCollection: function () { return false; },
|
isCollection: function () { return false; },
|
||||||
isSearch: function () { return true; },
|
isSearch: function () { return true; },
|
||||||
isShare: function () { return true; },
|
isShare: function () { return false; },
|
||||||
isTrash: function () { return false; }
|
isTrash: function () { return false; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
|
|
||||||
<script src="include.js"/>
|
<script src="include.js"/>
|
||||||
<script src="advancedSearch.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">
|
<vbox id="zotero-search-box-container" flex="1">
|
||||||
|
|
||||||
|
@ -39,7 +37,7 @@
|
||||||
|
|
||||||
<tree id="zotero-items-tree" flex="1" hidecolumnpicker="true" seltype="multiple"
|
<tree id="zotero-items-tree" flex="1" hidecolumnpicker="true" seltype="multiple"
|
||||||
ondblclick="ZoteroAdvancedSearch.onDblClick(event, this)"
|
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>
|
<treecols>
|
||||||
<treecol
|
<treecol
|
||||||
id="zotero-items-column-title" primary="true"
|
id="zotero-items-column-title" primary="true"
|
||||||
|
|
|
@ -1777,7 +1777,7 @@ Zotero.ItemTreeCommandController.prototype.onEvent = function(evt)
|
||||||
/**
|
/**
|
||||||
* Start a drag using nsDragAndDrop.js or HTML 5 Drag and Drop
|
* 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
|
// Quick implementation of dragging of XML item format
|
||||||
if (this._itemGroup.isShare()) {
|
if (this._itemGroup.isShare()) {
|
||||||
var items = this.getSelectedItems();
|
var items = this.getSelectedItems();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue