com web/php: Poor comments are still semi-transparent, but now their score, author, and date remain opaque at all times.: js/common.js

From: Date: Thu, 05 Dec 2013 22:55:34 +0000
Subject: com web/php: Poor comments are still semi-transparent, but now their score, author, and date remain opaque at all times.: js/common.js
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-17417@lists.php.net to get a copy of this message
Commit: 2d2021cd227327165fe754da936e0f59ec50a374 Author: Levi Morrison <levim@php.net> 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); }); }); }

« previous php.webmaster (#17417) next »