Tweaks to tag relations
* Fixed tag relations background if there are no related tags * Related tags link to search (LMB adds tag, MMB searches for it in new tab)
This commit is contained in:
parent
394c06a1c5
commit
fba6a50251
1 changed files with 2 additions and 1 deletions
|
@ -292,7 +292,7 @@ function attachTagIt(target)
|
|||
$.each(data.tags.slice(0, 10), function(i, tag)
|
||||
{
|
||||
var link = $('<a>');
|
||||
link.attr('href', '#');
|
||||
link.attr('href', '/posts/' + tag.name + '/');
|
||||
link.text('#' + tag.name);
|
||||
link.click(function(e)
|
||||
{
|
||||
|
@ -310,6 +310,7 @@ function attachTagIt(target)
|
|||
div.addClass('related-tags');
|
||||
div.append('<p>Related tags:</p>');
|
||||
div.append(list);
|
||||
div.append('<div class="clear"></div>');
|
||||
div.insertAfter(targetTagit).hide().slideDown();
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue