{"size": 2553, "ext": "js", "max_stars_repo_path": "src/SceauBundle/Resources/public/js/extranet/questionnaires.js", "max_stars_repo_name": "Simo2012/Fia", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/SceauBundle/Resources/public/js/extranet/questionnaires.js", "max_issues_repo_name": "Simo2012/Fia", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/SceauBundle/Resources/public/js/extranet/questionnaires.js", "max_forks_repo_name": "Simo2012/Fia", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.04, "max_line_length": 131, "alphanum_fraction": 0.4923619271}
function creerTooltipLivraison(contenu) {
    $('#tooltip').tooltipster({
            contentAsHTML: true,
            content: $(contenu),
            interactive: true,
            maxWidth: 350
        }
    );
}

function paquetQuestionnairesSuivants(texteFin, nbQuestionnairesMax, dateDebut, dateFin, tri, recherche, indicateurs, livraison) {

    $(document).ready(function () {

        var offset = nbQuestionnairesMax;

        $(window).data('ajaxready', true);

        $(window).scroll(function () {
            if ($(window).data('ajaxready') == false) return;

            if (($(window).scrollTop() + $(window).height()) == $(document).height()) {
                $(window).data('ajaxready', false);

                $('#chargement').fadeIn(400);

                $.post(Routing.generate('extranet_questionnaires_questionnaires_ajax', null, true),
                    {
                        offset: offset,
                        dateDebut: dateDebut,
                        dateFin: dateFin,
                        tri: tri,
                        recherche: recherche,
                        indicateurs: indicateurs.split('-'),
                        livraison: livraison
                    },
                    function (data) {
                        if (data != '') {
                            $('#listeQuestionnaires').find('tr:last').after(data);

                            offset += nbQuestionnairesMax;

                            $(window).data('ajaxready', true);
                            $('#chargement').fadeOut(400);
                        }
                        else {
                            $('#chargement').hide().after('<p>' + texteFin + '</p>');
                        }
                    }
                );
            }
        });
    });
}

function selectTriQuestionnaires(numTri) {
    $('#sceaubundle_questionnaires_liste_tri').val(numTri);
    $('form').submit();
}

function selectIndicateur(numIndicateur, imageIndicateur) {
    var checkbox = document.getElementById('sceaubundle_questionnaires_liste_indicateurs_' + numIndicateur);

    if (checkbox.checked) {
        imageIndicateur.className = 'indicateur-non-selectionne';
        checkbox.checked = false;
    } else {
        imageIndicateur.className = 'indicateur-selectionne';
        checkbox.checked = true;
    }
}

function decocherRetenir() {
    document.getElementById('sceaubundle_questionnaires_liste_retenir').checked = false;
}