/*
 * This file is part of the Claroline Connect package.
 *
 * (c) Claroline Consortium <consortium@claroline.net>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

(function () {
    'use strict';

    $('body').on('click', '.dropdown-menu > li > label', function () {
        if ($('#' + $(this).attr('for')).prop('checked')) {
            $(this).removeClass('active');
        } else {
            $(this).addClass('active');
        }
    });
}());

