質問
このダイアログコードがあります
// 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]アイコンをクリックし、ダイアログをもう一度開こうとしても、できません。
ダイアログを再び開く方法
解決
ダイアログを再度開くには、 open メソッドを使用する必要があります。
$("#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');
}
所属していません StackOverflow