publik: add title attributes to publik menu items (#12817)

This commit is contained in:
Frédéric Péters 2016-08-01 09:44:48 +02:00
parent eb98cdbdd7
commit 56923e7a16
1 changed files with 1 additions and 0 deletions

View File

@ -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) {