diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-05-17 22:19:36 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-05-17 23:07:31 +0200 |
commit | 3a372a916f3545d37390f692f24f7e1c4d5351b5 (patch) | |
tree | 2e0cd93ee1a897e196e86eedfa1233a37cbb2dae /extensions/ProductDashboard/web/js/duplicates.js | |
parent | 38b13ae3f1885faa0da1d0040a0dda87dc786515 (diff) | |
download | bugzilla-3a372a916f3545d37390f692f24f7e1c4d5351b5.tar.gz bugzilla-3a372a916f3545d37390f692f24f7e1c4d5351b5.tar.xz |
Bug 1363803 - Consolidate YUI js and css into one js and one css file
Diffstat (limited to 'extensions/ProductDashboard/web/js/duplicates.js')
-rw-r--r-- | extensions/ProductDashboard/web/js/duplicates.js | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/extensions/ProductDashboard/web/js/duplicates.js b/extensions/ProductDashboard/web/js/duplicates.js index 5e3193a65..57f890d6e 100644 --- a/extensions/ProductDashboard/web/js/duplicates.js +++ b/extensions/ProductDashboard/web/js/duplicates.js @@ -6,23 +6,25 @@ * defined by the Mozilla Public License, v. 2.0. */ -YUI({ - base: 'js/yui3/', - combine: false -}).use("datatable", "datatable-sort", function (Y) { - var column_defs = [ - { key:"id", label:"ID", sortable:true, allowHTML: true, - formatter: '<a href="show_bug.cgi?id={value}" target="_blank">{value}</a>' }, - { key:"count", label:"Count", sortable:true }, - { key:"status", label:"Status", sortable:true }, - { key:"version", label:"Version", sortable:true }, - { key:"component", label:"Component", sortable:true }, - { key:"severity", label:"Severity", sortable:true }, - { key:"summary", label:"Summary", sortable:false }, - ]; +$(function() { + YUI({ + base: 'js/yui3/', + combine: false + }).use("datatable", "datatable-sort", function (Y) { + var column_defs = [ + { key:"id", label:"ID", sortable:true, allowHTML: true, + formatter: '<a href="show_bug.cgi?id={value}" target="_blank">{value}</a>' }, + { key:"count", label:"Count", sortable:true }, + { key:"status", label:"Status", sortable:true }, + { key:"version", label:"Version", sortable:true }, + { key:"component", label:"Component", sortable:true }, + { key:"severity", label:"Severity", sortable:true }, + { key:"summary", label:"Summary", sortable:false }, + ]; - var duplicatesDataTable = new Y.DataTable({ - columns: column_defs, - data: PD.duplicates - }).render('#duplicates'); + var duplicatesDataTable = new Y.DataTable({ + columns: column_defs, + data: PD.duplicates + }).render('#duplicates'); + }); }); |