Created
          August 16, 2013 06:46 
        
      - 
      
 - 
        
Save arrblair/6247796 to your computer and use it in GitHub Desktop.  
    CS-438: fix I pulled from an old jira ticket of mine for grabbing the working comment count from the top of the commenting widget and replacing the non-functioning value of a comment count built into their WordPress theme that was at top of their blog post.
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var commentCountGrabber = function () { | |
| var commentCountDiv = document.getElementsByClassName('fyre-comment-count')[0]; | |
| var textContent = commentCountDiv.textContent; | |
| jQuery('.meta_comments > a').html(textContent); | |
| }; | |
| setInterval(commentCountGrabber, 40000); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment