var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); jQuery( document ).ready( function ( $ ) { function bbp_ajax_call( action, topic_id, nonce, update_selector ) { var $data = { action : action, id : topic_id, nonce : nonce }; $.post( bbpTopicJS.bbp_ajaxurl, $data, function ( response ) { if ( response.success ) { $( update_selector ).html( response.content ); } else { if ( !response.content ) { response.content = bbpTopicJS.generic_ajax_error; } alert( response.content ); } } ); } $( '#favorite-toggle' ).on( 'click', 'span a.favorite-toggle', function( e ) { e.preventDefault(); bbp_ajax_call( 'favorite', $( this ).attr( 'data-topic' ), bbpTopicJS.fav_nonce, '#favorite-toggle' ); } ); $( '#subscription-toggle' ).on( 'click', 'span a.subscription-toggle', function( e ) { e.preventDefault(); bbp_ajax_call( 'subscription', $( this ).attr( 'data-topic' ), bbpTopicJS.subs_nonce, '#subscription-toggle' ); } ); } ); } /* FILE ARCHIVED ON 21:59:30 May 09, 2015 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 09:33:00 Oct 08, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.602 exclusion.robots: 0.023 exclusion.robots.policy: 0.013 esindex: 0.01 cdx.remote: 126.577 LoadShardBlock: 496.818 (3) PetaboxLoader3.datanode: 544.375 (4) load_resource: 196.941 PetaboxLoader3.resolve: 137.151 */