/**
 * Auto-update the 'latest activity' widget.
 *
 * @mixin
 * @namespace Bolt.activity
 *
 * @param {Object} bolt - The Bolt module.
 * @param {Object} $ - jQuery.
     *
     * @private
     * @type {Object}
     */
    var activity = {};

    /**
     * Initializes the mixin.
     *
     * @static
     * @function init
     * @memberof Bolt.activity
     */
    activity.init = function () {
        if ($('#latestactivity').is('*')) {
            setTimeout(
                function () {
                    bolt.activity.update();
                },
                intervall
            );
        }
    };

    /**
     * Initializes the mixin.
     *
     * @static
     * @function update
     * @memberof Bolt.activity
     */
    activity.update = function () {
        $.get(
            bolt.conf('paths.async') + 'latestactivity',
            function (data) {
                $('#latesttemp').html(data);
                bolt.moments.update();
                $('#latestactivity').html($('#latesttemp').html());
            }
        );

        setTimeout(
            function () {
                bolt.activity.update();
            },
            intervall
        );
    };

    /**
     * Update intervall.
     *
     * @private
     * @constant {number} intervall
     * @memberof Bolt.activity
     */
    var intervall = 30 * 1000; // 30 seconds

    // Apply mixin container
    bolt.activity = activity;

})(Bolt || {}, jQuery);
 */
(function (bolt, $) {
    /**
     * Bolt.activity mixin container.