diff options
Diffstat (limited to 'extensions/MyDashboard')
-rw-r--r-- | extensions/MyDashboard/web/js/flags.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/extensions/MyDashboard/web/js/flags.js b/extensions/MyDashboard/web/js/flags.js index 89b381138..fc360fdc1 100644 --- a/extensions/MyDashboard/web/js/flags.js +++ b/extensions/MyDashboard/web/js/flags.js @@ -76,6 +76,12 @@ YUI({ Y.Escape.html(o.data.created_fancy) + '</span>'; }; + var requesteeFormatter = function (o) { + return o.value + ? Y.Escape.html(o.value) + : '<i>anyone</i>'; + }; + // Requestee dataSource.requestee = new Y.DataSource.IO({ source: 'jsonrpc.cgi' }); dataTable.requestee = new Y.DataTable({ @@ -117,7 +123,8 @@ YUI({ dataSource.requester = new Y.DataSource.IO({ source: 'jsonrpc.cgi' }); dataTable.requester = new Y.DataTable({ columns: [ - { key:"requestee", label:"Requestee", sortable:true }, + { key:"requestee", label:"Requestee", sortable:true, + formatter: requesteeFormatter, allowHTML: true }, { key:"type", label:"Flag", sortable:true }, { key:"bug_id", label:"Bug", sortable:true, formatter: bugLinkFormatter, allowHTML: true }, |