//Delete All'); } }, check : function( step ){ switch(step){ case 1: $("#del_link").html('Delete All Shouts? · Yes · No'); break; case 2: $("#del_link").html('Delete All Shouts? · Yes · No').slideToggle("fast",function(){$(this).remove();}); shout_del.load_page(); break; case 3: $("#del_link").parent().remove(); shout_del.ini(); } }, load_page : function(){ $.get(main_url+"stats/shout_archive/",function(d){ pages = $("ul.cat-pages:first li",d).not(".cat-pageshead").size(); rows = $("#sbx_archive tbody tr",d); shout_del.del(rows); if(pages != 0){ shout_del.load_page(); } else { $("#sbx_archive").html('All shouts have been deleted'); $("ul.cat-pages").slideToggle("fast",function(){$(this).remove();}); } }); }, del : function(rows){ rows.each(function(){ $(this).find("td:last a").click(); }); } } shout_del.ini(); //]]>