2011-06-21 6 views
0

を無効にダイアログに真のモーダルを追加すると、全体のポップアップ

$("#createDialog").dialog("option", "title", 'Create User232'); 
$("#createDialog").dialog("option", "modal", true); 
$("#createDialog").dialog("open"); 

このライン$("#createDialog").dialog("option", "modal", true);を使用した後は、すべてのHTMLコンポーネント(テキストボックス、コンボボックス) をしているというポップに開か示すよ​​うに、私は、jQueryのダイアログを使用しています無効状態

答えて

1

おそらくその優れたそうにする:

$("#createDialog").dialog({ title: "Create User232", 
           modal: true}); 

これは自動的に初期化し、オープンしますsのダイアログ;
あなたは、後でそれを開くようにする必要がある場合:

$("#createDialog").dialog({ title: "Create User232", 
           modal: true, 
           autoOpen: false}); 

をし、後でちょうど「オープン」メソッドを呼び出します。

関連する問題