From f0201a44388ad08f48861d49e96454093eb28685 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 7 Mar 2013 14:38:37 +0800 Subject: show "anyone" instead of empty for wind requests on mydashboard --- extensions/MyDashboard/web/js/flags.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'extensions/MyDashboard') 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) + ''; }; + var requesteeFormatter = function (o) { + return o.value + ? Y.Escape.html(o.value) + : 'anyone'; + }; + // 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 }, -- cgit v1.2.3-24-g4f1b