From 1b7e2b412b2564019f7a65235d630ca1e4e5c0f4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 26 Dec 2010 02:49:49 +0000 Subject: [PATCH] Fix tag selector drag and drop in Firefox 4 --- .../content/zotero/bindings/tagselector.xml | 42 +++++++++---------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/chrome/content/zotero/bindings/tagselector.xml b/chrome/content/zotero/bindings/tagselector.xml index d2d9ac6d6..586464462 100644 --- a/chrome/content/zotero/bindings/tagselector.xml +++ b/chrome/content/zotero/bindings/tagselector.xml @@ -246,9 +246,9 @@ label.setAttribute('tagType', this._tags[tagID].type); if (this.editable) { label.setAttribute('context', 'tag-menu'); - label.setAttribute('ondragover', 'nsDragAndDrop.dragOver(event, document.getBindingParent(this).dragObserver)'); - label.setAttribute('ondragexit', 'nsDragAndDrop.dragExit(event, document.getBindingParent(this).dragObserver)'); - label.setAttribute('ondragdrop', 'nsDragAndDrop.drop(event, document.getBindingParent(this).dragObserver)'); + label.setAttribute('ondragover', 'return document.getBindingParent(this).dragObserver.onDragOver(event)'); + label.setAttribute('ondragexit', 'return document.getBindingParent(this).dragObserver.onDragExit(event)'); + label.setAttribute('ondrop', 'return document.getBindingParent(this).dragObserver.onDrop(event)'); } tagsToggleBox.appendChild(label); } @@ -697,41 +697,44 @@