add icon to support ticket category dropdown

+ added an option to add "fa-angle-down" to any dropdown
pull/1/head
David Benqué 2020-06-22 13:22:48 +01:00
parent 64a092c630
commit 764da42d48
2 changed files with 6 additions and 0 deletions

View File

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

View File

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