Skip to content

Commit

Permalink
Merge pull request #6 from greenc/master
Browse files Browse the repository at this point in the history
Fixes issue #4 by accounting for a possible ending forward slash in the URL
  • Loading branch information
ByScripts committed Jul 10, 2014
2 parents 4074def + ae8ba06 commit 77f3a68
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 77f3a68

Please sign in to comment.