aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/makeBacktraceAttachment.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/lib/makeBacktraceAttachment.js')
-rw-r--r--data/lib/makeBacktraceAttachment.js58
1 files changed, 29 insertions, 29 deletions
diff --git a/data/lib/makeBacktraceAttachment.js b/data/lib/makeBacktraceAttachment.js
index 6011c06..9fc72bc 100644
--- a/data/lib/makeBacktraceAttachment.js
+++ b/data/lib/makeBacktraceAttachment.js
@@ -1,9 +1,9 @@
-// Released under the MIT/X11 license
-// http://www.opensource.org/licenses/mit-license.php
+//Released under the MIT/X11 license
+//http://www.opensource.org/licenses/mit-license.php
var titleParsedAttachment = "Part of the thread where crash happened";
/**
- *
+ *
*/
function pasteBacktraceInComments(atts) {
/*
@@ -20,11 +20,11 @@ function pasteBacktraceInComments(atts) {
return null;
var abrtQueryURL = "https://bugzilla.redhat.com/buglist.cgi?"
- + "cmdtype=dorem&remaction=run&namedcmd=all%20NEW%20abrt%20crashes&"
- + "sharer_id=74116";
+ + "cmdtype=dorem&remaction=run&namedcmd=all%20NEW%20abrt%20crashes&"
+ + "sharer_id=74116";
var mainTitle = document
- .getElementsByClassName("bz_alias_short_desc_container")[0];
+ .getElementsByClassName("bz_alias_short_desc_container")[0];
createDeadLink("callAbrtQuery_link", "Abrt bugs", mainTitle,
abrtQueryURL, [], false, null, "a");
@@ -42,25 +42,25 @@ function pasteBacktraceInComments(atts) {
// just the first one will do for now, we would need to do async
//
btAttachments
- .forEach(
- function(x) {
- var attURL = "https://bugzilla.redhat.com/attachment.cgi?id="
- + x[1];
- if ((!btSnippet) && // ???? FIXME
+ .forEach(
+ function(x) {
+ var attURL = "https://bugzilla.redhat.com/attachment.cgi?id="
+ + x[1];
+ if ((!btSnippet) && // ???? FIXME
(!idContainsWord("status_whiteboard", 'btparsed'))) {
- Request({
- url : attURL,
- onComplete : function(response) {
- if (response.status == 200) {
- btSnippet = parseBacktrace(response.text);
- if (btSnippet) {
- addCheckShowLink(x, btSnippet);
- }
- }
+ Request({
+ url : attURL,
+ onComplete : function(response) {
+ if (response.status == 200) {
+ btSnippet = parseBacktrace(response.text);
+ if (btSnippet) {
+ addCheckShowLink(x, btSnippet);
}
- }).get();
+ }
}
- }, this);
+ }).get();
+ }
+ }, this);
}
// Add "show BT" links
if (parsedAttachments.length > 0) {
@@ -72,7 +72,7 @@ function pasteBacktraceInComments(atts) {
/**
* Open new window with the content of the attachment.
- *
+ *
* @param id
* Number of the attachment id
* @return none
@@ -84,7 +84,7 @@ function showAttachment(id) {
/**
* add a link opening a window with the parsed backtrace
- *
+ *
* @param att
* Attachment object
*/
@@ -100,7 +100,7 @@ function addShowParsedBTLink(att) {
function addNewAttachmentRow(origAtt, newAttId, newAttSize) {
var that = this;
var oldAddBTLink = document
- .getElementById("attachBacktraceActivator");
+ .getElementById("attachBacktraceActivator");
oldAddBTLink.parentNode.removeChild(oldAddBTLink);
var newTRElem = origAtt[4].cloneNode(true);
@@ -116,9 +116,9 @@ function addNewAttachmentRow(origAtt, newAttId, newAttSize) {
aElements[0].getElementsByTagName("b")[0].textContent = titleParsedAttachment;
var sizeSpan = newTRElem
- .getElementsByClassName("bz_attach_extra_info")[0];
+ .getElementsByClassName("bz_attach_extra_info")[0];
sizeSpan.textContent = "(" + (newAttSize / 1024).toFixed(2)
- + " KB, text/plain)";
+ + " KB, text/plain)";
// aElements[1].textContent = new Date().toString(); TODO we should add
// eventually, but not pressing
@@ -135,7 +135,7 @@ function addNewAttachmentRow(origAtt, newAttId, newAttSize) {
vcardAElem.setAttribute("href", "mailto:" + this.login);
vcardAElem.className = "email";
vcardAElem.innerHTML = "<span class='fn'>" + this.login
- + "</span>";
+ + "</span>";
}
var elem = newTRElem.querySelector("td:last-of-type");
@@ -148,7 +148,7 @@ function addNewAttachmentRow(origAtt, newAttId, newAttSize) {
/**
* Add a link to create a new attachment with a parsed backtrace
- *
+ *
* @param oldAtt
* Object with an attachment row
* @param snippet