[Pkg-mozext-commits] [greasemonkey] 09/15: Drag'n' drop into AOM (two install dialogs)

David Prévot taffit at moszumanska.debian.org
Sat Aug 2 12:51:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository greasemonkey.

commit 2a7462b03a9040bfdff9a43925ed9306def8a37f
Author: janekptacijarabaci <janekptacijarabaci at centrum.cz>
Date:   Thu Jul 31 10:55:08 2014 +0200

    Drag'n' drop into AOM (two install dialogs)
---
 content/addons4-overlay.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/content/addons4-overlay.js b/content/addons4-overlay.js
index 4dc75db..d1cf329 100644
--- a/content/addons4-overlay.js
+++ b/content/addons4-overlay.js
@@ -48,7 +48,12 @@ gDragDrop.onDrop = function GM_onDrop(aEvent) {
 
   // Pass call through to the original handler, if any non-user-script
   // was part of this drop action.
-  if (droppedNonUserScript) _gDragDrop_onDrop_Orig(aEvent);
+  if (droppedNonUserScript) {
+    _gDragDrop_onDrop_Orig(aEvent);
+  }
+  else {
+    aEvent.preventDefault();
+  }
 };
 
 // Set up an "observer" on the config, to keep the displayed items up to date

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git



More information about the Pkg-mozext-commits mailing list