aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rhbzpage.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r--lib/rhbzpage.js44
1 files changed, 38 insertions, 6 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index d7860a2..a6acff4 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -29,7 +29,7 @@ var RHBugzillaPage = function RHBugzillaPage(doc, config) {
var manuChipStrs = [ [ "ATI Radeon", "ATI", "1002" ],
[ "ATI Mobility Radeon", "ATI", "1002" ],
[ "Intel Corporation", "INTEL", "8086" ], [ "NVIDIA", "NV", "10de" ] ];
-
+
// http://en.wikipedia.org/wiki/HSL_color_space
// when only the value of S is changed
// stupido!!! the string is value in hex for each color
@@ -141,7 +141,7 @@ RHBugzillaPage.prototype.getDefaultAssignee = function() {
RHBugzillaPage.prototype.setDefaultAssignee = function() {
this.defaultAssignee = this.getDefaultAssignee();
var defAss = this.defaultAssignee;
-
+
// Add setting default assignee
if ((defAss.length > 0) && (defAss !== this.getOwner())) {
this.constantData.defaultAssigneeTrigger = true;
@@ -162,11 +162,11 @@ RHBugzillaPage.prototype.closeSomeRelease = function() {
this.selectOption("bug_status", "CLOSED");
var text = "";
var resolution = "";
-
+
if (selection.text) {
text = selection.text.trim();
}
- if (text.length > 0) {
+ if (text.length > 0) {
resolution = "CURRENTRELEASE";
this.doc.getElementById("cf_fixed_in").value = text;
} else if (verNo === 999) {
@@ -758,6 +758,38 @@ RHBugzillaPage.prototype.fixAttachById = function(id, type, email) {
});
msg.addParameter(this.login);
msg.addParameter(this.password);
+ console.log("msg.xml() = " + msg.xml());
+/*
+https://bugzilla.redhat.com/docs/en/html/api/extensions/compat_xmlrpc/code/webservice.html
+<methodCall>
+<methodName>bugzilla.updateAttachMimeType</methodName>
+<params>
+<param>
+<value><struct>
+<member>
+<name>attach_id</name>
+<value><i4>388923</i4></value>
+</member>
+<member>
+<name>mime_type</name>
+<value><string>text/plain</string></value>
+</member>
+<member>
+<name>nomail</name>
+<value><boolean>1</boolean></value>
+</member>
+</struct>
+</value>
+</param>
+<param>
+<value><string>mcepl@redhat.com</string></value>
+</param>
+<param>
+<value><string>kyrios</string></value>
+</param>
+</params>
+</methodCall>
+*/
var req = new XMLHttpRequest();
var that = this;
@@ -785,7 +817,7 @@ RHBugzillaPage.prototype.fixAttachById = function(id, type, email) {
* @return button fixing all bad Attachments
*/
RHBugzillaPage.prototype.createFixAllButton = function(list) {
- if (!XMLRPCMessage) {
+ if (!xrpc.XMLRPCMessage) {
return;
}
var that = this;
@@ -869,7 +901,7 @@ RHBugzillaPage.prototype.addClosingUpstream = function() {
// FIXME THis is not good, we don't have a feedback for other commands,
// not to be run, if this fails.
-
+
// It is not good to close bug as UPSTREAM, if there is no reference
// to the upstream bug.
if ((externalBugID > 0) || (refs.length > 2)) {