publik: add title attributes to publik menu items (#12817)
This commit is contained in:
parent
eb98cdbdd7
commit
56923e7a16
|
@ -45,6 +45,7 @@ $(function() {
|
|||
$(service.data).each(function(idx, element) {
|
||||
var li = $('<li><a href="#">' + element.label + '</a></li>').appendTo(menu_links);
|
||||
$(li).find('a').attr('href', element.url);
|
||||
$(li).find('a').attr('title', element.label);
|
||||
if (element.icon !== undefined) {
|
||||
$(li).find('a').addClass('icon-' + element.icon);
|
||||
} else if (element.slug !== undefined) {
|
||||
|
|
Loading…
Reference in New Issue