summaryrefslogtreecommitdiffstats
path: root/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-08-16 22:26:46 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-08-16 22:26:46 +0200
commit2b11e4ce9253bf543bde87c16bd9b6d90446cff6 (patch)
tree8eefcc04c9273e8cd170c0b820395a66a8aa6b6e /extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl
parentae3016495ffde3e71d879109e35437dbeff0747f (diff)
downloadbugzilla-2b11e4ce9253bf543bde87c16bd9b6d90446cff6.tar.gz
bugzilla-2b11e4ce9253bf543bde87c16bd9b6d90446cff6.tar.xz
Dashboard improvements
Diffstat (limited to 'extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl')
-rw-r--r--extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl38
1 files changed, 20 insertions, 18 deletions
diff --git a/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl b/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl
index 36a820300..fc3403bc4 100644
--- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl
+++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl
@@ -12,26 +12,28 @@
<script type="text/javascript">
<!--
-var column_defs = [
- { key:"id", label:"ID", sortable:true, sortOptions:{ sortFunction:sortBugIdLinks } },
- { key:"count", label:"Count", sortable:true },
- { key:"bug_status", label:"Status", sortable:true },
- { key:"version", label:"Version", sortable:true },
- { key:"component", label:"Component", sortable:true },
- { key:"bug_severity", label:"Severity", sortable:true, sortOptions:{ sortFunction:sortBugSeverity } },
- { key:"Summary", label:"Summary", sortable:false },
+PD.options = {
+ paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false })
+};
+PD.column_defs = [
+ { key:"id", label:"ID", sortable:true, sortOptions:{ sortFunction: PD.sortBugIdLinks } },
+ { key:"count", label:"Count", sortable:true },
+ { key:"bug_status", label:"Status", sortable:true },
+ { key:"version", label:"Version", sortable:true },
+ { key:"component", label:"Component", sortable:true },
+ { key:"bug_severity", label:"Severity", sortable:true, sortOptions:{ sortFunction: PD.sortBugSeverity } },
+ { key:"Summary", label:"Summary", sortable:false },
];
-var fields = [
- { key:"id" },
- { key:"count", parser:"number" },
- { key:"bug_status" },
- { key:"version" },
- { key:"component" },
- { key:"bug_severity" },
- { key:"Summary" }
+PD.fields = [
+ { key:"id" },
+ { key:"count", parser:"number" },
+ { key:"bug_status" },
+ { key:"version" },
+ { key:"component" },
+ { key:"bug_severity" },
+ { key:"Summary" }
];
-addStatListener("duplicate_counts", "duplicate_counts_table", column_defs, fields, {
- [% IF by_duplicate.size > 25 %] paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25 }) [% END %]
+PD.addStatListener("duplicate_counts", "duplicate_counts_table", PD.column_defs, PD.fields, PD.options);
});
-->
</script>