add icon to support ticket category dropdown

+ added an option to add "fa-angle-down" to any dropdown
pull/1/head
David Benqué 5 years ago
parent 64a092c630
commit 764da42d48

@ -2155,6 +2155,11 @@ define([
'class': 'fa fa-caret-down', 'class': 'fa fa-caret-down',
}).prependTo($button); }).prependTo($button);
} }
if (config.angleDown) {
$('<span>', {
'class': 'fa fa-angle-down',
}).prependTo($button);
}
// Menu // Menu
var $innerblock = $('<div>', {'class': 'cp-dropdown-content'}); var $innerblock = $('<div>', {'class': 'cp-dropdown-content'});

@ -119,6 +119,7 @@ Messages.support_category = "Category"; // XXX
}); });
var dropdownCfg = { var dropdownCfg = {
text: Messages.support_category, text: Messages.support_category,
angleDown: 1,
options: categories, options: categories,
container: $(container), container: $(container),
isSelect: true isSelect: true

Loading…
Cancel
Save