/**
 * yiicalendar.js
 *
 * Part of YiiCalendar extension for Yii 1.x (based on ecalendarview extension).
 *
 * @website   http://www.yiiframework.com/extension/yii-calendar/
 * @website   https://github.com/trejder/yii-calendar
 * @author    Tomasz Trejderowski <tomasz@trejderowski.pl>
 * @author    Martin Ludvik <matolud@gmail.com>
 * @copyright Copyright (c) 2014 by Tomasz Trejderowski & Martin Ludvik
 * @license   http://opensource.org/licenses/MIT (MIT license)
 */

!function($) {
  $.fn.yiicalendar = function() {
    this.on('click', '.navigation-link', function() {
      $.ajax({
        'url': $(this).attr('href'),
        'context': $(this).parents('.yiicalendar'),
        'cache': false,
        'success': function(data) {
          var calendarId = '#' + this.attr('id');
          var calendarData = $(calendarId, data);
          this.html(calendarData.html());
        }
      });
      return false;
    });
  }
}(window.jQuery);
/**
 * yiicalendar.js
 *
 * Part of YiiCalendar extension for Yii 1.x (based on ecalendarview extension).
 *
 * @website   http://www.yiiframework.com/extension/yii-calendar/
 * @website   https://github.com/trejder/yii-calendar
 * @author    Tomasz Trejderowski <tomasz@trejderowski.pl>
 * @author    Martin Ludvik <matolud@gmail.com>
 * @copyright Copyright (c) 2014 by Tomasz Trejderowski & Martin Ludvik
 * @license   http://opensource.org/licenses/MIT (MIT license)
 */

!function($)
{
    $.fn.yiicalendar = function()
    {
        this.on('click', '.navigation-link', function()
        {
            $('table.yiicalendar').css('opacity', 0.1);

            // $.ajax
            // ({
            //     'url': $(this).attr('href'),
            //     'context': $(this).parents('.yiicalendar'),
            //     'cache': false,
            //     'success': function(data)
            //     {
            //         var calendarId = '#' + this.attr('id');
            //         var calendarData = $(calendarId, data);

            //         this.html(calendarData.html());
            //     }
            // });

            return false;
        });
    }
}(window.jQuery);
Add simple dim effect (opacity to 0.1) when refreshing calendar via AJAX.