diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-09-10 20:50:05 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-09-10 20:50:05 +0200 |
commit | 07a9f4248c978771e55dc9054238ff03a4d6865c (patch) | |
tree | f98f4a1e98d06bd1d59c188a9f31032a1bd74907 /lib/rhbzpage.js | |
parent | 2a7171fb5cd16ae361916dd0dd97d566f970a6df (diff) | |
download | bugzilla-triage-07a9f4248c978771e55dc9054238ff03a4d6865c.tar.gz |
Getting Bug.get via XML-RPC
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r-- | lib/rhbzpage.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index 1e870f7..5e8291d 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -51,8 +51,6 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) { frameNo: new RegExp("^\\s*#([0-9]*)\\s"), soughtLines: new RegExp("^\\s*(\\[[0-9 .]*\\])?\\s*\\((EE|WW)\\)|\\s*Backtrace") }; - - this.constantData.XMLRPCData = JSON.parse(self.data.load("XMLRPCdata.json")); // END OF CONSTANTS var that = this; @@ -60,7 +58,6 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) { this.signaturesCounter = 0; this.chipMagicInterestingLine = ""; - this.login = this.getLogin(); this.product = this.doc.getElementById("product").value; this.maintCCAddr = null; @@ -72,11 +69,6 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) { var ITbutton = this.doc.getElementById("cf_issuetracker"); this.its = ITbutton ? ITbutton.value.trim() : ""; - // XML-RPC password - if (this.hostname in this.constantData.XMLRPCData) { - this.password = this.getPassword(this.login); - } - if (!this.constantData.ProfessionalProducts) { this.constantData.ProfessionalProducts = JSON.parse(self.data.load("professionalProducts.json")); @@ -150,18 +142,6 @@ RHBugzillaPage.prototype = util.heir(BZPage); RHBugzillaPage.prototype.constructor = RHBugzillaPage; /** - * Get login of the currently logged-in user. - * - * @return String with the login name of the currently logged-in user - */ -RHBugzillaPage.prototype.getLogin = function getLogin () { - var lastLIElement = this.doc.querySelector("#header ul.links li:last-of-type"); - var loginArr = lastLIElement.textContent.split("\n"); - var loginStr = loginArr[loginArr.length - 1].trim(); - return loginStr; -}; - -/** * Find default assignee based on the current component * * @return String what would be a default assignee if |