@contentpilot/read-more
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 1.0.0 | ||
* @version 1.0.1 | ||
* | ||
@@ -69,3 +69,3 @@ * @package Read More | ||
var $showMoreBtn = $(this).find('button.read-more'); | ||
var $showMoreBtn = $(this).parent().find('button.read-more'); | ||
var $showLessBtn = $('<button type="button" class="read-more '+settings.lessCSS+'">'+settings.lessLabel+'</button>'); | ||
@@ -78,3 +78,3 @@ | ||
$showLessBtn.appendTo($(this).find('.read-more-content').last()); | ||
$showLessBtn.appendTo($(this).find('.read-more-content').last()); | ||
@@ -85,3 +85,3 @@ $showMoreBtn.on('click', function(e) { | ||
$showMoreBtn.hide(); | ||
$('.read-more-content').fadeIn('slow'); | ||
$showMoreBtn.parent().find('.read-more-content').fadeIn('slow'); | ||
}); | ||
@@ -88,0 +88,0 @@ } |
{ | ||
"name": "@contentpilot/read-more", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Find and convet the WordPress <!--more--> read more tag to toggle all content below", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,2 +15,10 @@ # Content Pilot Read More | ||
`$('.entry-content').cpReadMore();` | ||
`$('.entry-content').cpReadMore();` | ||
# Changelog | ||
= 1.0.1 = | ||
* Add nesting to find just the parent button to target individual button | ||
= 1.0.0 = | ||
* Initial release |
3777
23