aboutsummaryrefslogblamecommitdiffstats
path: root/lib/rhbzpage.js
blob: 468818be8bbbcb2592802602f7b7a1721594cab6 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                                                                                                                                                                   
                           

                             
                                

                                      







                                                                                       
                                                                                    


                                                     
                                          
                                                         


                                                                                   
                                       
 


                                                   
                                       
 
                                             
                                                     
/*jslint onevar: false, browser: true, evil: true, laxbreak: true, undef: true, nomen: true, eqeqeq: true, bitwise: true, maxerr: 1000, immed: false, white: false, plusplus: false, regexp: false, undef: false */
/*global jetpack */
// Released under the MIT/X11 license
// http://www.opensource.org/licenses/mit-license.php
"use strict";
var util = require("util");
var xrpc = require("xmlrpc");
var xhr = require("xhr");
var clip = require("clipboard");
var Color = require("color").Color;
var BZPage = require("bzpage").BZPage;
// var TriagedDistro = 13;
// var NumberOfFrames = 7;
// var XMLRPCurl = "https://bugzilla.redhat.com/xmlrpc.cgi";
// var bugURL = "https://bugzilla.redhat.com/show_bug.cgi?id=";

// ====================================================================================
// RHBugzillaPage object

var RHBugzillaPage = exports.RHBugzillaPage = function RHBugzillaPage(doc, config) {
    // inheritance ... call superobject's constructor
    BZPage.call(this, doc, config);

    // For identification of graphics card
    var manuChipStrs = [ [ "ATI Radeon", "ATI", "1002" ],
            [ "ATI Mobility Radeon", "ATI", "1002" ],
            [ "Intel Corporation", "INTEL", "8086" ], [ "NVIDIA", "NV", "10de" ] ];

    console.log("Now we are outside!");

    console.log("location = " + this.doc.location);
    this.bugId = this.getBugId();
    console.log("bug number = " + this.bugId);
}; // END OF RHBugzillaPage CONSTRUCTOR

RHBugzillaPage.prototype = util.heir(BZPage);
RHBugzillaPage.prototype.constructor = RHBugzillaPage;