diff options
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r-- | lib/rhbzpage.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index f43c1be..b007982 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -3,6 +3,7 @@ // Released under the MIT/X11 license // http://www.opensource.org/licenses/mit-license.php "use strict"; +var utilMod = require("util"); // var TriagedDistro = 13; // var NumberOfFrames = 7; // var XMLRPCurl = "https://bugzilla.redhat.com/xmlrpc.cgi"; @@ -101,7 +102,7 @@ exports.RHBugzillaPage = function RHBugzillaPage(doc) { } } // END OF RHBugzillaPage CONSTRUCTOR -RHBugzillaPage.prototype = hlpr.heir(BZPage); +RHBugzillaPage.prototype = utilMod.heir(BZPage); RHBugzillaPage.prototype.constructor = RHBugzillaPage; /** @@ -391,7 +392,7 @@ RHBugzillaPage.prototype.pasteBacktraceInComments = function() { attURL = "https://bugzilla.redhat.com/attachment.cgi?id=" + x[1]; if (!this.btSnippet) { - let btRaw = hlpr.loadText(attURL, function(ret) { + let btRaw = utilMod.loadText(attURL, function(ret) { this.btSnippet = this.parseBacktrace(ret); if (this.btSnippet) { this.addStuffToTextBox("comment", this.btSnippet); @@ -411,7 +412,7 @@ RHBugzillaPage.prototype.markBadAttachments = function() { let badMIMEArray = [ "application/octet-stream", "text/x-log", "undefined" ]; let badAttachments = this.attachments.filter(function(att, idx, arr) { - return (hlpr.isInList(att[2], badMIMEArray)); + return (utilMod.isInList(att[2], badMIMEArray)); }); if (badAttachments.length > 0) { @@ -511,7 +512,7 @@ RHBugzillaPage.prototype.setBranding = function() { } // we should make visible whether maintCCAddr is in CCList - if (hlpr.isInList(this.maintCCAddr, this.CCList)) { + if (utilMod.isInList(this.maintCCAddr, this.CCList)) { let ccEditBoxElem = this.doc.getElementById("cc_edit_area_showhide"); // ccEditBoxElem.textContent = "*"+ccEditBoxElem.textContent; ccEditBoxElem.style.color = "navy"; @@ -523,7 +524,7 @@ RHBugzillaPage.prototype.setBranding = function() { let compElems; let suspiciousComponents = config.gJSONData.configData.suspiciousComponents; if (suspiciousComponents - && hlpr.isInList(this.component, suspiciousComponents) + && utilMod.isInList(this.component, suspiciousComponents) && (compElems = this.doc .getElementById("bz_component_edit_container"))) { compElems.style.background = "red none"; |