From 932d1fb7ce06081c788ea088171fd69ef03cd394 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Thu, 6 Aug 2009 15:26:13 -0400 Subject: Move inline javascript to a separate js file --- plugins/InfiniteScroll/infinitescroll.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 plugins/InfiniteScroll/infinitescroll.js (limited to 'plugins/InfiniteScroll/infinitescroll.js') 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 : "Loading the next set of posts...", + donetext : "Congratulations, you\'ve reached the end of the Internet.", + navSelector : "div.pagination", + contentSelector : "#notices_primary", + itemSelector : "ol.notices" + }); +}); + -- cgit v1.2.3-54-g00ecf From 4f751563c76bcea37fdf3e0623a037670476077b Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Tue, 11 Aug 2009 16:36:34 -0400 Subject: Make notice attachment lightbox work after an infinite scroll happens --- plugins/InfiniteScroll/infinitescroll.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/InfiniteScroll/infinitescroll.js') diff --git a/plugins/InfiniteScroll/infinitescroll.js b/plugins/InfiniteScroll/infinitescroll.js index b80bd4ec5..4bd315b6f 100644 --- a/plugins/InfiniteScroll/infinitescroll.js +++ b/plugins/InfiniteScroll/infinitescroll.js @@ -7,6 +7,8 @@ jQuery(document).ready(function($){ navSelector : "div.pagination", contentSelector : "#notices_primary", itemSelector : "ol.notices" + },function(){ + NoticeAttachments(); }); }); -- cgit v1.2.3-54-g00ecf From 2260cf20f5cbbda13fa470b55509c89f4f1e08e7 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Tue, 11 Aug 2009 23:05:46 -0400 Subject: Corrected the Infinite Scroll CSS Selectors Thanks dcostalis for making me aware of the issue! --- plugins/InfiniteScroll/infinitescroll.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/InfiniteScroll/infinitescroll.js') diff --git a/plugins/InfiniteScroll/infinitescroll.js b/plugins/InfiniteScroll/infinitescroll.js index 4bd315b6f..6513072d0 100644 --- a/plugins/InfiniteScroll/infinitescroll.js +++ b/plugins/InfiniteScroll/infinitescroll.js @@ -1,12 +1,13 @@ jQuery(document).ready(function($){ $('notices_primary').infinitescroll({ + debug: true, nextSelector : "li.nav_next a", loadingImg : $('address .url')[0].href+'plugins/InfiniteScroll/ajax-loader.gif', text : "Loading the next set of posts...", donetext : "Congratulations, you\'ve reached the end of the Internet.", navSelector : "div.pagination", - contentSelector : "#notices_primary", - itemSelector : "ol.notices" + contentSelector : "#notices_primary ol.notices", + itemSelector : "#notices_primary ol.notices li" },function(){ NoticeAttachments(); }); -- cgit v1.2.3-54-g00ecf