jQuery(function(){
jQuery('#jquery-tabs').tabs(
{
ajaxOptions: {dataFilter:function(data){
//prevent call find() before the ajax request receives a response?
jQuery(data).append('
tabinclude
'); var bd = jQuery(data).find('.page'); // for template arctic-mbo and actic if (bd..length == 0){bd = jQuery(data).find('.right_page');} if (bd..length == 0){bd = jQuery(data).find('.left_page');} // for template monobook or vecter if (bd..length == 0){bd = jQuery(data).find('#bodyContent');} // nm replacement likely not work except default template? //var nm = jQuery(data).find(".pagename").html().replace('do=backlink','').replace(/title=".*"/,'title="Open this tab"'); return bd.html();} }, cache: true } ) });