b2evolution PHP Cross Reference Blogging Systems

Source: /rsc/js/navigation.js - 40 lines - 1127 bytes - Text - Print

Description: This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

   1  /**

   2   * This file is part of the evoCore framework - {@link http://evocore.net/}

   3   * See also {@link http://sourceforge.net/projects/evocms/}.

   4   * @version $Id: results.js 674 2012-08-15 07:08:29Z yura $

   5   */
   6  
   7  jQuery( document ).ready( function()
   8  {
   9      jQuery( document ).on( 'click', 'div.navigation.ajax a', function ()
  10      {
  11          var params = 'action=results&callback_function=items_list_block_by_page';
  12          var this_obj = jQuery( this );
  13          this_obj.addClass( 'loading' );
  14  
  15          var link_href = jQuery( this ).attr( 'href' ).split( '?' );
  16          link_href = link_href[1];
  17  
  18          if( typeof blog_id != 'undefined' && blog_id > 0 )
  19          {    // Add "blog" param
  20              params += '&blog=' + blog_id;
  21          }
  22  
  23          jQuery.ajax(
  24          {    // Send ajax request with the given params
  25              type: 'POST',
  26              url: htsrv_url + 'anon_async.php',
  27              data: params + '&' + link_href,
  28              success: function( result )
  29              {
  30                  jQuery( 'div#content' ).append( ajax_debug_clear( result ) );
  31                  this_obj.parent().fadeOut( 500, function()
  32                  {    // Hide & remove current page link
  33                      jQuery( this ).remove();
  34                  } );
  35              }
  36          } );
  37  
  38          return false;
  39      } );
  40  } );

title

Description

title

Description

title

Description

title

title

Body