summaryrefslogtreecommitdiff
path: root/plugins/InfiniteScroll/infinitescroll.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/InfiniteScroll/infinitescroll.js')
-rw-r--r--plugins/InfiniteScroll/infinitescroll.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/InfiniteScroll/infinitescroll.js b/plugins/InfiniteScroll/infinitescroll.js
new file mode 100644
index 000000000..b80bd4ec5
--- /dev/null
+++ b/plugins/InfiniteScroll/infinitescroll.js
@@ -0,0 +1,12 @@
+jQuery(document).ready(function($){
+ $('notices_primary').infinitescroll({
+ nextSelector : "li.nav_next a",
+ loadingImg : $('address .url')[0].href+'plugins/InfiniteScroll/ajax-loader.gif',
+ text : "<em>Loading the next set of posts...</em>",
+ donetext : "<em>Congratulations, you\'ve reached the end of the Internet.</em>",
+ navSelector : "div.pagination",
+ contentSelector : "#notices_primary",
+ itemSelector : "ol.notices"
+ });
+});
+