diff options
author | Ehsan Akhgari <ehsan@mozilla.com> | 2011-02-18 19:33:22 -0500 |
---|---|---|
committer | Ehsan Akhgari <ehsan@mozilla.com> | 2011-02-18 19:33:22 -0500 |
commit | 284cc142f9bae029bc0feb42e90ce3408f497e6a (patch) | |
tree | dbb535ec3002cd0d7708922c56578eb8465214fc | |
parent | 10482a82157c9ee4e9b84473254a4676ec913110 (diff) | |
download | bugzilla-triage-284cc142f9bae029bc0feb42e90ce3408f497e6a.tar.gz |
Use the range count instead of the selection text
-rw-r--r-- | data/js/bug-page-mod.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/js/bug-page-mod.js b/data/js/bug-page-mod.js index afb1e1a..3c9b410 100644 --- a/data/js/bug-page-mod.js +++ b/data/js/bug-page-mod.js @@ -67,7 +67,7 @@ function tweakBugzilla(d) { // if they have scrolled the page, in which case we assume that they // are using the page, or if they've selected anything on the page.) if (d.defaultView.scrollY > 0 || - d.defaultView.getSelection() == "") { + d.defaultView.getSelection().rangeCount > 0) { cancelRedirection(); } else { d.location.href = url; |