문제

이 대화 코드가 있습니다

// load dialog to user signup
function new_user_signup()
{
    $.get("/actions/_new_user_account.php",
    function(data){
        $("#dialog").html(data);
    });
    $("#dialog").dialog({ width: 400,resizable: false, position: 'top', draggable: false,     title: 'Opret profil' });
}

오른쪽 상단에서 X 아이콘을 클릭하고 대화 상자를 다시 열면 할 수 없습니다.

대화 상자를 다시 열 수 있습니까?

도움이 되었습니까?

해결책

당신은 사용해야합니다 열려 있는 대화 상자를 다시 열는 메소드 :

$("#dialog").dialog('open');

다른 팁

한 번 초기화 한 다음 기능을 호출 할 때마다 다시 열어야합니다. 이 같은:

// initialize dialog after page is loaded, pay attention to "autoOpen: false"
$(document).ready(function(){
    $("#dialog").dialog({ width: 400,resizable: false, position: 'top', draggable: false,     title: 'Opret profil', autoOpen: false });
});

// load dialog to user signup
function new_user_signup()
{
    $.get("/actions/_new_user_account.php",
        function(data){
            $("#dialog").html(data);
        }
    );
    $("#dialog").dialog('open');
 }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top