From 578325aba7b9d6cd9d1f8fee90691230b93678db Mon Sep 17 00:00:00 2001 From: vBm Date: Tue, 17 Mar 2015 01:18:04 +0100 Subject: [PATCH] Move "click" to text instead of number and change cursor --- remaining.episodes.followshows.user.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/remaining.episodes.followshows.user.js b/remaining.episodes.followshows.user.js index 50bf790..7c9ad88 100644 --- a/remaining.episodes.followshows.user.js +++ b/remaining.episodes.followshows.user.js @@ -20,7 +20,13 @@ $('#stats').append( }), $('
').attr({ class: 'title' - }).text('EPISODES TO WATCH') + }).css( + 'cursor', 'pointer' + ).click( + function() { + prompt('Total count:', textPrep()); + } + ).text('EPISODES TO WATCH') ) ); @@ -45,10 +51,7 @@ if (!$('a.btn-follow-user').attr('user')) { totalEpisodesSum = totalEpisodes.reduce(function(a, b) { return a + b; }); - $('.addic7ed').text(totalEpisodesSum).click( - function() { - prompt('Total count:', textPrep()); - }); + $('.addic7ed').text(totalEpisodesSum); } else { $('.addic7ed').text('N/A'); }