回答編集履歴
1
ちょうせい
answer
CHANGED
@@ -13,19 +13,16 @@
|
|
13
13
|
$(function(){
|
14
14
|
var dlg=$('#dialog');
|
15
15
|
dlg.load('modal.html', function() {
|
16
|
-
$.when(
|
17
|
-
|
16
|
+
dlg.dialog({
|
18
|
-
|
17
|
+
"modal":true,
|
19
|
-
|
18
|
+
"title":"テストダイアログ",
|
20
|
-
|
19
|
+
"buttons": {
|
21
|
-
|
20
|
+
"確認": function() {
|
22
|
-
|
21
|
+
$(this).dialog("close");
|
23
|
-
|
22
|
+
},
|
24
|
-
|
23
|
+
}
|
25
|
-
|
24
|
+
});
|
26
|
-
).then(function(){
|
27
|
-
|
25
|
+
$('#modal').text($('#hide').val());
|
28
|
-
});
|
29
26
|
});
|
30
27
|
});
|
31
28
|
</script>
|
@@ -33,4 +30,5 @@
|
|
33
30
|
</div>
|
34
31
|
<input type="hidden" id="hide" value="hogehoge">
|
35
32
|
|
33
|
+
|
36
34
|
```
|