aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan@mozilla.com>2011-02-18 19:32:37 -0500
committerEhsan Akhgari <ehsan@mozilla.com>2011-02-18 19:32:37 -0500
commit10482a82157c9ee4e9b84473254a4676ec913110 (patch)
treeafc23e046fe46789b9f71125a591aa2b75144dc5 /data
parent056179ee4acf5d9a389fa72211f4aa2b4aa716d2 (diff)
downloadbugzilla-triage-10482a82157c9ee4e9b84473254a4676ec913110.tar.gz
Don't redirect if the user has interacted with the page by selecting something
Diffstat (limited to 'data')
-rw-r--r--data/js/bug-page-mod.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/data/js/bug-page-mod.js b/data/js/bug-page-mod.js
index a7d952b..afb1e1a 100644
--- a/data/js/bug-page-mod.js
+++ b/data/js/bug-page-mod.js
@@ -65,8 +65,9 @@ function tweakBugzilla(d) {
var timer = d.defaultView.setTimeout(function() {
// don't redirect if the user is using the page (for now, we just see
// if they have scrolled the page, in which case we assume that they
- // are using the page.)
- if (d.defaultView.scrollY > 0) {
+ // are using the page, or if they've selected anything on the page.)
+ if (d.defaultView.scrollY > 0 ||
+ d.defaultView.getSelection() == "") {
cancelRedirection();
} else {
d.location.href = url;