function cherche_type_ajax(exoID, displayFormType) {
    //"use strict";

    var indice_type = $("#menu_type_question option:selected").index();

    $.ajax({
        type: "POST",
        url: displayFormType,
        data: { indice_type: indice_type, exercise: exoID },
        cache: false,
        success: function (data) {
            $("#formulaire_interactions").html(data);
        }
    });
}

function cherche_type(warningChangeTypeQ, exoID, displayFormType) {
    //"use strict";

    if (($("#formulaire_interactions").find("div").length) > 0) {
        if (confirm(warningChangeTypeQ)) {
            cherche_type_ajax(exoID, displayFormType);
        }
    } else {
        cherche_type_ajax(exoID, displayFormType);
    }
}

function search_user_ajax(ujm_question_share_search_user, page) {
    //"use strict";
    //alert($("#search-user-txt").val());

    var search = $("#search-user-txt").val();
    var qId = document.getElementById('QID').innerHTML;

    $.ajax({
        type: "GET",
        url: ujm_question_share_search_user,
        data: {
            search: search,
            page: page,
            qId: qId
        },
        cache: false,
        success: function (data) {
            $("#searchUserList").html(data);
        }
    });
}