aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-09-04 03:16:20 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-09-04 03:16:20 +0200
commit440ce05b99983e334a4998fc39396b35b641cff1 (patch)
treed0b82fafb09e2fee8da5f77a1b160083cbab6f37
parent78f2a9dc142341ba361420c63200a60c6d58da81 (diff)
downloadbugzilla-triage-440ce05b99983e334a4998fc39396b35b641cff1.tar.gz
Remove unnecessary call OpenStringInPanel and related function.
-rw-r--r--data/rhlib/rhbzpage.js3
-rw-r--r--lib/libbugzilla.js5
-rw-r--r--lib/main.js4
3 files changed, 2 insertions, 10 deletions
diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js
index abc84c7..eb10238 100644
--- a/data/rhlib/rhbzpage.js
+++ b/data/rhlib/rhbzpage.js
@@ -271,7 +271,8 @@ function displayResultsInPanel(results) {
innerString += "No matching lines found!";
}
- self.postMessage(new Message("OpenStringInPanel",
+ self.postMessage(new Message("OpenURLinPanel",
+ 'data:text/html;charset=utf-8,' +
'<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">' +
"<html><head><title>Xorg.0.log analysis</title></head><body><pre>\n" +
innerString.trim() +
diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js
index f7ae37b..928555e 100644
--- a/lib/libbugzilla.js
+++ b/lib/libbugzilla.js
@@ -248,11 +248,6 @@ exports.setClipboard = function setClipboard(stuff) {
clipboard.set(stuff, "text");
};
-exports.openStringInNewPanel = function openStringInNewPanel(inHTMLStr) {
- openURLInNewPanel("data:text/html;charset=utf-8," +
- inHTMLStr);
-};
-
var openURLInNewPanel = exports.openURLInNewPanel = function openURLInNewPanel(url) {
var panel = panelMod.Panel({
contentURL: url,
diff --git a/lib/main.js b/lib/main.js
index 6a5e58c..0beb947 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -77,10 +77,6 @@ var messageHandler = exports.messageHandler = function messageHandler(
case "OpenURLinTab":
libbz.openURLInNewTab(msg.data);
break;
- // Needed because Panel is add-on module
- case "OpenStringInPanel":
- libbz.openStringInNewPanel(msg.data);
- break;
// Needed because creating additional page-mods on remote bugzilla
case "OpenBugUpstream":
libbz.createUpstreamBug(msg.data.url, msg.data.subject,