Skip to content

Commit

Permalink
Fixes issue ByScripts#4 by accounting for a possible ending forward s…
Browse files Browse the repository at this point in the history
…lash in the URL
  • Loading branch information
Chris Green committed Jun 11, 2014
1 parent 4074def commit ae8ba06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/byscripts_ajax_posts_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jQuery(document).ready(function($) {
* Load new posts when the link is clicked.
*/
$loaderTrigger.click(function() {
var next_link = page_link_model.replace(/\d+$/, page_number_next);
var next_link = page_link_model.replace(/\d+(\/)?$/, page_number_next + '$1');

// Are there more posts to load?
if(page_number_next <= page_number_max) {
Expand Down

0 comments on commit ae8ba06

Please sign in to comment.