Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function infinite_scroll_callback() {}
- jQuery(document).ready(function($) {
- $('.protected-post-form').center();
- $('#content').infinitescroll({
- debug : false,
- loading : {},
- state : {currPage : "1"},
- nextSelector : "div.navigation a:first",
- navSelector : "div.navigation",
- contentSelector : "#content",
- itemSelector : "#content div.post",
- pathParse : ["<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?>page/", "/"]
- },
- function() { window.setTimeout(infinite_scroll_callback(), 1);}
- );
- function applyvote(elements){
- $(elements).each(
- $(".vote a").click(
- function() {
- var some = jQuery(this);
- var thepost = jQuery(this).attr("post");
- var theuser = jQuery(this).attr("user");
- jQuery.post("<?php bloginfo('template_url'); ?>/vote.php", {user: theuser, post: thepost},
- function(data) {
- var votebox = ".vote"+thepost+" span";
- jQuery(votebox).text(data);
- });
- });
- });
- }
- $(elem).infinitescroll(options,applyvote(arrayOfNewElems));
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement