From 5f7db88a2d75462c7dbb3c8abea7b60c6d2e5997 Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 29 Dec 2013 04:27:53 +0100 Subject: watch.js and post-hover.js integrations --- js/watch.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'js/watch.js') diff --git a/js/watch.js b/js/watch.js index cda38ee7..13eec82c 100644 --- a/js/watch.js +++ b/js/watch.js @@ -84,7 +84,7 @@ $(function(){ for (var i in st) { if (is_pinned(st[i])) { var link; - if (bl.find('[href*="/'+i+'/"]:not(.cb-menuitem)').length) link = bl.find('[href*="/'+i+'/"]').first(); + if (bl.find('[href*="/'+i+'/index.html"]:not(.cb-menuitem)').length) link = bl.find('[href*="/'+i+'/"]').first(); // TODO: fix path else link = $('/'+i+'/').appendTo(pinned); @@ -126,6 +126,7 @@ $(function(){ .css("top", $(this).position().top + 13 + $(this).height()) .css("left", $(this).position().left) .css("right", "auto") + .css("font-style", "normal") .appendTo($(this)); var board = $(this).attr("data-board"); @@ -162,6 +163,9 @@ $(function(){ $(this).parent().parent().parent().mouseleave(); return false; }); + + if (typeof init_hover != "undefined") + init_hover.bind(tag[0])(); } }).mouseleave(function() { -- cgit v1.3