Commit: 2d2021cd227327165fe754da936e0f59ec50a374 Author: Levi Morrison <[email protected]> Thu, 5 Dec 2013 15:55:34 -0700 Parents: e3b34780d25c994e493402d3a71bfc767d380247 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=2d2021cd227327165fe754da936e0f59ec50a374 Log: Poor comments are still semi-transparent, but now their score, author, and date remain opaque at all times. Changed paths: M js/common.js Diff: diff --git a/js/common.js b/js/common.js index 387a483..dfa4775 100755 --- a/js/common.js +++ b/js/common.js @@ -287,17 +287,16 @@ $(document).ready(function() { }; $(usernotes).on('mouseenter mouseleave', '.note', function(event) { var opacity = 1; - var $note = $(this); + var $note = $(this).find('.text'); if (event.type === 'mouseleave' && $note.data('opacity') !== undefined) { opacity = $note.data('opacity'); } $note.fadeTo('fast', opacity); }).find('.note').each(function() { - var $note = $(this); - $note.find('.tally:contains("-")').each(function(){ - var id = this.id.replace('V', ''); + $(this).find('.tally:contains("-")').each(function(){ + var id = this.id.replace('V', 'Hcom'); var v = mapper.normalize(this.innerHTML.toInt()); - $note.fadeTo(0, v).data("opacity", v); + $('#' + id).fadeTo(0, v).data("opacity", v); }); }); } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
