[Pkg-mozext-commits] [itsalltext] 355/459: Fixed the context/right-click menu.
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit 0b6150d7e32e8fd06fff1f2b4216be7daa82f100
Author: Christian Höltje <docwhat at gerf.org>
Date: Thu Jan 21 20:40:41 2010 -0500
Fixed the context/right-click menu.
---
src/chrome/content/cacheobj.js | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index 3a30a20..5e531ee 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -566,18 +566,12 @@ CacheObj.prototype.onContext = function (event) {
var cobj = CacheObj.get(event.target),
popup = ItsAllText.rebuildMenu(cobj.uid);
- if (popup.openPopup) {
- /* FF3 breath of sanity. */
- popup.openPopup(cobj.button, 'end_before',
- 0, cobj.gumdrop_height,
- true, false);
- } else {
- document.popupNode = popup;
- popup.showPopup(document.documentElement,
- event.screenX, event.screenY,
- 'popup', false, false);
- }
+ popup.openPopup(cobj.button, 'end_before',
+ 0, 0,
+ true, false);
+
event.stopPropagation();
+ event.preventDefault();
return false;
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list