aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-07-19 14:03:32 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-07-19 14:04:38 +0200
commite06a2341056cabd82fae8527d30a9ec97b24dc10 (patch)
treee0f2e7e3166fa37e6d85ffa32d4b295c8c2dfca5 /data
parenta15dcaade30059a07583c392fa770b8f299aa673 (diff)
downloadbugzilla-triage-e06a2341056cabd82fae8527d30a9ec97b24dc10.tar.gz
Palmface :( made a nice endless recursion.
Diffstat (limited to 'data')
-rw-r--r--data/lib/queries.js6
-rw-r--r--data/rhlib/rhbzpage.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/data/lib/queries.js b/data/lib/queries.js
index 066991e..ccb2927 100644
--- a/data/lib/queries.js
+++ b/data/lib/queries.js
@@ -2,7 +2,7 @@
// http://www.opensource.org/licenses/mit-license.php
"use strict";
-function getSelection() {
+function getSel() {
var text = "";
var selectionObject = window.getSelection();
if (selectionObject.rangeCount > 0) {
@@ -64,7 +64,7 @@ function queryInNewTab(text, component, product, equivComps) {
* function this.queryInNewTab, and run it.
*/
function queryForSelection() {
- var text = getSelection();
+ var text = getSel();
if (!text) {
self.postMessage(new Message("GetClipboard", "queryLocal"));
}
@@ -107,7 +107,7 @@ function queryUpstream(qUpBug) {
alert("We don't have constantData.queryUpstreamBug set up!");
return null;
}
- var text = getSelection();
+ var text = getSel();
if (!text) {
self
.postMessage(new Message("GetClipboard", "queryUpstream"));
diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js
index bfdeb55..f74556c 100644
--- a/data/rhlib/rhbzpage.js
+++ b/data/rhlib/rhbzpage.js
@@ -103,7 +103,7 @@ function closeSomeRelease() {
// "Fixed in Version" textbox
// otherwise -> NEXTRELEASE
selectOption("bug_status", "CLOSED");
- var text = getSelection();
+ var text = getSel();
var resolution = "";
if (text.length > 0) {