Last active
December 14, 2015 10:49
-
-
Save scottlyttle/5075092 to your computer and use it in GitHub Desktop.
Revisions
-
scottlyttle revised this gist
Mar 3, 2013 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,12 @@ // store the links parent selectors as variables var $next = $(".next"); var $prev = $(".prev"); // if the prev posts link doesn't exist but the next link does if ($prev.children().length == 0 && $next.children().length > 0) { // add a span with prev $prev.append('<span class="disabled">Prev</span>'); // if the next posts link doesn't exist but the prev one does } else if ($next.children().length == 0 && $prev.children().length > 0) { // add a span with next $next.append('<span class="disabled">Next</span>'); }; -
scottlyttle created this gist
Mar 3, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ // Store the links parent selectors as variables var $next = $(".next"); var $prev = $(".prev"); // If the prev posts link doesn't exist and the next link does if ($prev.children().length == 0 && $next.children().length > 0) { // Add a span with prev $prev.append('<span class="disabled">Prev</span>'); // If the next posts link doesn't exist but the prev one does } else if ($next.children().length == 0 && $prev.children().length > 0) { // Add a span with next $next.append('<span class="disabled">Next</span>'); };