﻿function LostPasswordLoaded(ajaxContext, titre) {

    $("<div id='LostPasswordPopup' style='display: none;' title='Mot de passe oublié ?'></div>").html(ajaxContext.get_data()).dialog({
        autoOpen: true,
        bgiframe: true,
        width: 550,
        height: 270,
        resizable: false,
        modal: true,
        buttons: {
            'Confirmer': function () {
                CurrentDialog = $(this);
                $('#LostPasswordSubmitButton', this).click();
            },
            'Annuler': function () {
                $(this).dialog('close');
            }
        },
        close: function (event, ui) {
            $(this).dialog('destroy').remove();
        }
    });
}
