diff options
author | Rogan Creswick <creswick@gmail.com> | 2013-06-13 18:48:08 -0700 |
---|---|---|
committer | Rogan Creswick <creswick@gmail.com> | 2013-06-13 18:48:08 -0700 |
commit | c1d8d80f7fa3ec99e402f8bfe0aeac1a0bc257f7 (patch) | |
tree | e4288dde5be6626338a791691b3022daf8783de6 /src/js/fiveui/js | |
parent | 467a34d97f29701463030c2b5c6c775a0a8342ed (diff) |
added color brightness rules and minor tweaks to the ui (adding xpath, report message)
Diffstat (limited to 'src/js/fiveui/js')
-rw-r--r-- | src/js/fiveui/js/background.js | 3 | ||||
-rw-r--r-- | src/js/fiveui/js/state.js | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/js/fiveui/js/background.js b/src/js/fiveui/js/background.js index e662e95..268526b 100644 --- a/src/js/fiveui/js/background.js +++ b/src/js/fiveui/js/background.js @@ -157,7 +157,8 @@ fiveui.Background.prototype.pageLoad = function(tabId, url, data) { this.loadScripts(tabId, computeScripts, true, data); var uiScripts = _.flatten( - [ this.dataLoader('jquery/bundled.css') + [ this.dataLoader('underscore.js') + , this.dataLoader('jquery/bundled.css') , this.dataLoader('jquery/jquery-1.8.3.js') , this.dataLoader('jquery/jquery-ui-1.9.2.custom.js') , this.dataLoader('injected/injected.css') diff --git a/src/js/fiveui/js/state.js b/src/js/fiveui/js/state.js index 226a439..b3487c5 100644 --- a/src/js/fiveui/js/state.js +++ b/src/js/fiveui/js/state.js @@ -46,12 +46,14 @@ fiveui.WinState = function(x, y, width, height, closed) { * @param {string} url The url that the problem occurred at. * @param {number} severity The severity of the problem */ -fiveui.Problem = function(name, descr, url, severity, hash) { +fiveui.Problem = function(name, descr, url, severity, hash, xpath, msg) { this.name = name || ''; this.descr = descr || ''; this.url = url || ''; this.severity = severity || 0; this.hash = hash; + this.xpath = xpath; + this.msg = msg; }; /** @@ -59,7 +61,7 @@ fiveui.Problem = function(name, descr, url, severity, hash) { * @return {!fiveui.Problem} The problem that the object represents. */ fiveui.Problem.fromJSON = function(obj) { - return new fiveui.Problem(obj.name, obj.descr, obj.url, obj.severity, obj.hash); + return new fiveui.Problem(obj.name, obj.descr, obj.url, obj.severity, obj.hash, obj.xpath, obj.msg); }; /** |