mdsupport wrote on Friday, October 14, 2016:
In case anyone is interested in local changes to the standard new menu, here are few lines to decrease horizontal space needed by new menu :
Make sure font-awesome css is in the DOM and invoke after all standard code.
// Replace menu text by fa
var xl_icons = {
"Calendar": "calendar",
"Flow Board": "calendar-check-o",
"Messages": "envelope",
// "Fees": "money",
// "Administration": "cog",
// "Reports": "file-text-o",
"About": "ellipsis-v",
};
$(".menuLabel").each( function(ix) {
var lbl = $(this).html().trim();
if (xl_icons[lbl]) {
$(this).css ('font-size', '150%');
$(this).attr ('title', lbl);
$(this).html('<i class="fa fa-' + xl_icons[lbl] + '" aria-hidden="true"></i>');
}
});