|
|
@ -133,9 +133,13 @@ define([
|
|
|
|
'account', // Msg.support_cat_account
|
|
|
|
'account', // Msg.support_cat_account
|
|
|
|
'data', // Msg.support_cat_data
|
|
|
|
'data', // Msg.support_cat_data
|
|
|
|
'bug', // Msg.support_cat_bug
|
|
|
|
'bug', // Msg.support_cat_bug
|
|
|
|
|
|
|
|
// XXX report
|
|
|
|
'other' // Msg.support_cat_other
|
|
|
|
'other' // Msg.support_cat_other
|
|
|
|
];
|
|
|
|
];
|
|
|
|
if (all) { categories.push('all'); } // Msg.support_cat_all
|
|
|
|
if (all) { categories.push('all'); } // Msg.support_cat_all
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
categories = categories.map(function (key) {
|
|
|
|
categories = categories.map(function (key) {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
tag: 'a',
|
|
|
|
tag: 'a',
|
|
|
@ -174,6 +178,7 @@ define([
|
|
|
|
var catContainer = h('div.cp-dropdown-container' + (title ? '.cp-hidden': ''));
|
|
|
|
var catContainer = h('div.cp-dropdown-container' + (title ? '.cp-hidden': ''));
|
|
|
|
makeCategoryDropdown(ctx, catContainer, function (key) {
|
|
|
|
makeCategoryDropdown(ctx, catContainer, function (key) {
|
|
|
|
$(category).val(key);
|
|
|
|
$(category).val(key);
|
|
|
|
|
|
|
|
// XXX add a hint suggesting relevant information to include for the chosen category
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var attachments, addAttachment;
|
|
|
|
var attachments, addAttachment;
|
|
|
|