$(document).ready(function() {


    $('.input-search').keyup(function(event) {
        if (event.keyCode == 13) {
            var groupNumber = $(this).val();
            getXml(groupNumber);
            return false;
        }
    });



    $('.nav-tabs').on('show.tools.tabs', function(tab, hash) {
        $('.daily-schedule').empty();
        $('.daily-schedule').append($(hash).html());
    });

    $('#selectSubgroup .btn').click(function() {
        $('.btn-active').removeClass('btn-active');
        $(this).addClass('btn-active');
        applyScheduleOptions();
    });

    $('.week-checkbox').change(function() {
        applyScheduleOptions();
    });
});
