Popover icon

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-11-08 13:10:30 +01:00
parent 2348d14e48
commit c6103dc9b7
No known key found for this signature in database
GPG key ID: FB5ACEED51955BF8

View file

@ -159,10 +159,10 @@
for (var i = 0; i < parts.length; i++) {
var part = parts[i];
if(part.dir) {
$menuItem = $('<li class="crumblist"><a><span></span></a></li>');
$menuItem = $('<li class="crumblist"><a><span class="icon-folder"></span><span></span></a></li>');
$menuItem.data('dir', part.dir);
$menuItem.find('a').attr('href', this.getCrumbUrl(part, i));
$menuItem.find('span').text(part.name);
$menuItem.find('span:eq(1)').text(part.name);
this.$menu.children('ul').append($menuItem);
if (this.onClick) {
$menuItem.on('click', this.onClick);