質問編集履歴
5
jsタグ追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -94,6 +94,8 @@
|
|
94
94
|
|
95
95
|
<script src="../assets/fullcalendar/4_3_1/packages/list/main.js"></script>
|
96
96
|
|
97
|
+
<script src="../common/js/default_cal.js"></script>
|
98
|
+
|
97
99
|
|
98
100
|
|
99
101
|
<body>
|
@@ -144,7 +146,7 @@
|
|
144
146
|
|
145
147
|
```
|
146
148
|
|
147
|
-
```jquery
|
149
|
+
```jquery(default_cal.js)
|
148
150
|
|
149
151
|
|
150
152
|
|
4
タグ追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,6 +18,14 @@
|
|
18
18
|
|
19
19
|
どなたかおわかりでしたらカレンダーへの予定更新と削除の方法を教えて頂けたらと思います。
|
20
20
|
|
21
|
+
※カレンダーのevents予定の表示や、予定内容の取得など基本的な部分については
|
22
|
+
|
23
|
+
正常に動いています。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
21
29
|
v4が無理ならv5でも大丈夫です。
|
22
30
|
|
23
31
|
|
@@ -46,54 +54,108 @@
|
|
46
54
|
|
47
55
|
|
48
56
|
|
57
|
+
```html
|
58
|
+
|
59
|
+
<html lang="ja">
|
60
|
+
|
61
|
+
<link href="../assets/fullcalendar/4_3_1/packages/core/main.css" rel="stylesheet" />
|
62
|
+
|
63
|
+
<link href="../assets/fullcalendar/4_3_1/packages/daygrid/main.css" rel="stylesheet" />
|
64
|
+
|
65
|
+
<link href="../assets/fullcalendar/4_3_1/packages/timegrid/main.css" rel="stylesheet" />
|
66
|
+
|
67
|
+
<link href="../assets/fullcalendar/4_3_1/packages/list/main.css" rel="stylesheet" />
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
<script src="../assets/js/bootstrap.min.js"></script>
|
72
|
+
|
73
|
+
<script src="../assets/js/jquery-ui.min.js"></script>
|
74
|
+
|
75
|
+
<script src="../assets/js/jquery-ui.custom.min.js"></script>
|
76
|
+
|
77
|
+
<script src="../assets/js/jquery.ui.touch-punch.min.js"></script>
|
78
|
+
|
79
|
+
<script src="../assets/js/bootbox.js"></script>
|
80
|
+
|
81
|
+
<script src="../assets/js/jquery.easypiechart.min.js"></script>
|
82
|
+
|
83
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js"></script>
|
84
|
+
|
85
|
+
<script src="../assets/js/moment.min.js"></script>
|
86
|
+
|
87
|
+
<script src="../assets/fullcalendar/4_3_1/packages/core/main.js"></script>
|
88
|
+
|
89
|
+
<script src="../assets/fullcalendar/4_3_1/packages/interaction/main.js"></script>
|
90
|
+
|
91
|
+
<script src="../assets/fullcalendar/4_3_1/packages/daygrid/main.js"></script>
|
92
|
+
|
93
|
+
<script src="../assets/fullcalendar/4_3_1/packages/timegrid/main.js"></script>
|
94
|
+
|
95
|
+
<script src="../assets/fullcalendar/4_3_1/packages/list/main.js"></script>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<body>
|
100
|
+
|
101
|
+
<div class="row">
|
102
|
+
|
103
|
+
<div class="col-xs-12">
|
104
|
+
|
105
|
+
<div class="row">
|
106
|
+
|
107
|
+
<div class="col-sm-9">
|
108
|
+
|
109
|
+
<div id="calendar"></div>
|
110
|
+
|
111
|
+
</div>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div id="modal-table" class="modal fade" tabindex="-1">
|
122
|
+
|
123
|
+
<div class="modal-dialog">
|
124
|
+
|
125
|
+
<div class="modal-content">
|
126
|
+
|
127
|
+
<div class="modal-body">
|
128
|
+
|
129
|
+
<!-- 省略 -->
|
130
|
+
|
131
|
+
</div>
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
</div>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
</body>
|
142
|
+
|
143
|
+
</html>
|
144
|
+
|
145
|
+
```
|
146
|
+
|
49
147
|
```jquery
|
50
148
|
|
51
149
|
|
52
150
|
|
53
|
-
<link href="../assets/fullcalendar/4_3_1/packages/core/main.css" rel="stylesheet" />
|
54
|
-
|
55
|
-
<link href="../assets/fullcalendar/4_3_1/packages/daygrid/main.css" rel="stylesheet" />
|
56
|
-
|
57
|
-
<link href="../assets/fullcalendar/4_3_1/packages/timegrid/main.css" rel="stylesheet" />
|
58
|
-
|
59
|
-
<link href="../assets/fullcalendar/4_3_1/packages/list/main.css" rel="stylesheet" />
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
<script src="../assets/js/bootstrap.min.js"></script>
|
64
|
-
|
65
|
-
<script src="../assets/js/jquery-ui.min.js"></script>
|
66
|
-
|
67
|
-
<script src="../assets/js/jquery-ui.custom.min.js"></script>
|
68
|
-
|
69
|
-
<script src="../assets/js/jquery.ui.touch-punch.min.js"></script>
|
70
|
-
|
71
|
-
<script src="../assets/js/bootbox.js"></script>
|
72
|
-
|
73
|
-
<script src="../assets/js/jquery.easypiechart.min.js"></script>
|
74
|
-
|
75
|
-
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js"></script>
|
76
|
-
|
77
|
-
<script src="../assets/js/moment.min.js"></script>
|
78
|
-
|
79
|
-
<script src="../assets/fullcalendar/4_3_1/packages/core/main.js"></script>
|
80
|
-
|
81
|
-
<script src="../assets/fullcalendar/4_3_1/packages/interaction/main.js"></script>
|
82
|
-
|
83
|
-
<script src="../assets/fullcalendar/4_3_1/packages/daygrid/main.js"></script>
|
84
|
-
|
85
|
-
<script src="../assets/fullcalendar/4_3_1/packages/timegrid/main.js"></script>
|
86
|
-
|
87
|
-
<script src="../assets/fullcalendar/4_3_1/packages/list/main.js"></script>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
151
|
//
|
92
152
|
|
93
|
-
// jqueryロード
|
153
|
+
// jqueryロード
|
94
154
|
|
95
155
|
//
|
96
156
|
|
157
|
+
window.addEventListener('DOMContentLoaded', function(){
|
158
|
+
|
97
159
|
|
98
160
|
|
99
161
|
//カレンダーイベント
|
@@ -176,7 +238,7 @@
|
|
176
238
|
|
177
239
|
calendar.render();
|
178
240
|
|
179
|
-
|
241
|
+
});
|
180
242
|
|
181
243
|
```
|
182
244
|
|
3
jqueryロード部分省略
test
CHANGED
File without changes
|
test
CHANGED
@@ -88,6 +88,14 @@
|
|
88
88
|
|
89
89
|
|
90
90
|
|
91
|
+
//
|
92
|
+
|
93
|
+
// jqueryロード部分は省略
|
94
|
+
|
95
|
+
//
|
96
|
+
|
97
|
+
|
98
|
+
|
91
99
|
//カレンダーイベント
|
92
100
|
|
93
101
|
var calendarEl = document.getElementById('calendar');
|
2
読み込みタグの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,6 +48,46 @@
|
|
48
48
|
|
49
49
|
```jquery
|
50
50
|
|
51
|
+
|
52
|
+
|
53
|
+
<link href="../assets/fullcalendar/4_3_1/packages/core/main.css" rel="stylesheet" />
|
54
|
+
|
55
|
+
<link href="../assets/fullcalendar/4_3_1/packages/daygrid/main.css" rel="stylesheet" />
|
56
|
+
|
57
|
+
<link href="../assets/fullcalendar/4_3_1/packages/timegrid/main.css" rel="stylesheet" />
|
58
|
+
|
59
|
+
<link href="../assets/fullcalendar/4_3_1/packages/list/main.css" rel="stylesheet" />
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<script src="../assets/js/bootstrap.min.js"></script>
|
64
|
+
|
65
|
+
<script src="../assets/js/jquery-ui.min.js"></script>
|
66
|
+
|
67
|
+
<script src="../assets/js/jquery-ui.custom.min.js"></script>
|
68
|
+
|
69
|
+
<script src="../assets/js/jquery.ui.touch-punch.min.js"></script>
|
70
|
+
|
71
|
+
<script src="../assets/js/bootbox.js"></script>
|
72
|
+
|
73
|
+
<script src="../assets/js/jquery.easypiechart.min.js"></script>
|
74
|
+
|
75
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js"></script>
|
76
|
+
|
77
|
+
<script src="../assets/js/moment.min.js"></script>
|
78
|
+
|
79
|
+
<script src="../assets/fullcalendar/4_3_1/packages/core/main.js"></script>
|
80
|
+
|
81
|
+
<script src="../assets/fullcalendar/4_3_1/packages/interaction/main.js"></script>
|
82
|
+
|
83
|
+
<script src="../assets/fullcalendar/4_3_1/packages/daygrid/main.js"></script>
|
84
|
+
|
85
|
+
<script src="../assets/fullcalendar/4_3_1/packages/timegrid/main.js"></script>
|
86
|
+
|
87
|
+
<script src="../assets/fullcalendar/4_3_1/packages/list/main.js"></script>
|
88
|
+
|
89
|
+
|
90
|
+
|
51
91
|
//カレンダーイベント
|
52
92
|
|
53
93
|
var calendarEl = document.getElementById('calendar');
|
1
削除方法の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
### Fullcalendar V4での更新方法について
|
1
|
+
### Fullcalendar V4での更新・削除方法について
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
どなたかおわかりでしたらカレンダーへの予定更新方法を教えて頂けたらと思います。
|
19
|
+
どなたかおわかりでしたらカレンダーへの予定更新と削除の方法を教えて頂けたらと思います。
|
20
20
|
|
21
21
|
v4が無理ならv5でも大丈夫です。
|
22
22
|
|
@@ -110,6 +110,16 @@
|
|
110
110
|
|
111
111
|
|
112
112
|
|
113
|
+
//モーダル内削除ボタンクリック
|
114
|
+
|
115
|
+
$('#btn-modal-delete').on('click', function(ev) {
|
116
|
+
|
117
|
+
//ここでエラー
|
118
|
+
|
119
|
+
calEvent.remove();
|
120
|
+
|
121
|
+
});
|
122
|
+
|
113
123
|
}
|
114
124
|
|
115
125
|
|
@@ -138,7 +148,9 @@
|
|
138
148
|
|
139
149
|
calendarEl.fullCalendar('updateEvent', calEvent);
|
140
150
|
|
151
|
+
●削除のほうもだめ
|
141
152
|
|
153
|
+
calEvent.remove();
|
142
154
|
|
143
155
|
|
144
156
|
|