From 9c6be2c0ebffc35a82ca2e3638146f4ecdbe7919 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 6 Mar 2011 21:32:49 +0000 Subject: [PATCH] fix tag selector in Zotero tab --- chrome/content/zotero/bindings/tagselector.xml | 12 +++++++----- chrome/content/zotero/tab.js | 5 +++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/bindings/tagselector.xml b/chrome/content/zotero/bindings/tagselector.xml index 586464462..c494e5141 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', '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)'); + label.addEventListener('dragover', this.dragObserver.onDragOver, false); + label.addEventListener('dragexit', this.dragObserver.onDragExit, false); + label.addEventListener('drop', this.dragObserver.onDrop, true); } tagsToggleBox.appendChild(label); } @@ -698,8 +698,9 @@