summaryrefslogtreecommitdiffstats
path: root/extensions/MyDashboard/web/js
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-08-10 22:41:10 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-08-10 22:41:10 +0200
commitfa6a04cf74404946ceb71c055c152b7859c5a65a (patch)
treef220f0c244b40c1641544232115de46eb04435f0 /extensions/MyDashboard/web/js
parentb0ffc83036d55ec7e2870de0d8146760185e342f (diff)
downloadbugzilla-fa6a04cf74404946ceb71c055c152b7859c5a65a.tar.gz
bugzilla-fa6a04cf74404946ceb71c055c152b7859c5a65a.tar.xz
small changes to My Dashboard
Diffstat (limited to 'extensions/MyDashboard/web/js')
-rw-r--r--extensions/MyDashboard/web/js/mydashboard.js33
1 files changed, 31 insertions, 2 deletions
diff --git a/extensions/MyDashboard/web/js/mydashboard.js b/extensions/MyDashboard/web/js/mydashboard.js
index 64a421113..59b198cff 100644
--- a/extensions/MyDashboard/web/js/mydashboard.js
+++ b/extensions/MyDashboard/web/js/mydashboard.js
@@ -27,10 +27,11 @@ var showQuerySection = function () {
var query_column_defs = [
{ key:"id", label:"ID", sortable:true, sortOptions:{ sortFunction:sortBugIdLinks } },
- { key:"updated", label:"Updated", sortable:false },
+ { key:"updated", label:"Updated", sortable:true },
{ key:"bug_status", label:"Status", sortable:true },
{ key:"summary", label:"Summary", sortable:true },
];
+
var query_fields = [
{ key:"id" },
{ key:"updated" },
@@ -38,6 +39,34 @@ var query_fields = [
{ key:"summary" }
];
+var requestee_column_defs = [
+ { key:"requester", label:"Requester", sortable:true },
+ { key:"flag", label:"Flag", sortable:true },
+ { key:"bug", label:"Bug", sortable:true },
+ { key:"created", label:"Created", sortable:true }
+];
+
+var requestee_fields = [
+ { key:"requester" },
+ { key:"flag" },
+ { key:"bug" },
+ { key:"created" }
+];
+
+var requester_column_defs = [
+ { key:"requestee", label:"Requestee", sortable:true },
+ { key:"flag", label:"Flag", sortable:true },
+ { key:"bug", label:"Bug", sortable:true },
+ { key:"created", label:"Created", sortable:true }
+];
+
+var requester_fields = [
+ { key:"requestee" },
+ { key:"flag" },
+ { key:"bug" },
+ { key:"created" }
+];
+
function addStatListener (div_name, table_name, column_defs, fields, options) {
YAHOO.util.Event.addListener(window, "load", function() {
YAHOO.example.StatsFromMarkup = new function() {
@@ -113,7 +142,7 @@ var sortBugPriority = function(a, b, desc) {
else if(!YAHOO.lang.isValue(b)) {
return -1;
}
-
+
var new_a = new Number(priorities[YAHOO.lang.trim(a.getData('priority'))]);
var new_b = new Number(priorities[YAHOO.lang.trim(b.getData('priority'))]);