summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-03-07 07:38:37 +0100
committerByron Jones <bjones@mozilla.com>2013-03-07 07:38:37 +0100
commitf0201a44388ad08f48861d49e96454093eb28685 (patch)
tree1ce665fb993160eed373d20d9b7b3881e24cd668
parent2f2adb4d9e8f16b4ded86e34ccfa403975838833 (diff)
downloadbugzilla-f0201a44388ad08f48861d49e96454093eb28685.tar.gz
bugzilla-f0201a44388ad08f48861d49e96454093eb28685.tar.xz
show "anyone" instead of empty for wind requests on mydashboard
-rw-r--r--extensions/MyDashboard/web/js/flags.js9
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 },