From a8a003a636ee34505b127f83e534336a13bc505a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 10 Aug 2014 00:45:40 +0200 Subject: Bold/Unbold the title of the article with jQuery. --- pyaggr3g470r/static/js/articles.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pyaggr3g470r/static/js') diff --git a/pyaggr3g470r/static/js/articles.js b/pyaggr3g470r/static/js/articles.js index 4f27b802..51273f3d 100644 --- a/pyaggr3g470r/static/js/articles.js +++ b/pyaggr3g470r/static/js/articles.js @@ -40,6 +40,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Requires jQuery') } } else { // here, filter == "all" + $(this).parent().parent().parent().children("td:nth-child(2)").css( "font-weight", "bold" ); $(this).removeClass('glyphicon-unchecked').addClass('glyphicon-check'); $("#unread-"+feed_id).text(parseInt($("#unread-"+feed_id).text()) + 1); } @@ -59,6 +60,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Requires jQuery') } } else { // here, filter == "all" + $(this).parent().parent().parent().children("td:nth-child(2)").css( "font-weight", "normal" ); $(this).removeClass('glyphicon-check').addClass('glyphicon-unchecked'); if (parseInt($("#unread-"+feed_id).text()) == 1) { $("#unread-"+feed_id).remove(); -- cgit