質問編集履歴
2
補足
test
CHANGED
File without changes
|
test
CHANGED
@@ -45,3 +45,93 @@
|
|
45
45
|
西暦入力時もカレンダー表示連動させるにはどうしたらいいのでしょうか?
|
46
46
|
|
47
47
|
お手数ですがどなたかお分かりになる方、ご教授頂けますと助かります。
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
補足
|
52
|
+
|
53
|
+
Air Datepicker
|
54
|
+
|
55
|
+
https://github.com/t1m0n/air-datepicker
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
見ているファイル
|
60
|
+
|
61
|
+
datepicker.js
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
見ている箇所
|
66
|
+
|
67
|
+
```jQuery
|
68
|
+
|
69
|
+
//447行目〜
|
70
|
+
|
71
|
+
selectDate: function (date) {
|
72
|
+
|
73
|
+
var _this = this,
|
74
|
+
|
75
|
+
opts = _this.opts,
|
76
|
+
|
77
|
+
d = _this.parsedDate,
|
78
|
+
|
79
|
+
selectedDates = _this.selectedDates,
|
80
|
+
|
81
|
+
len = selectedDates.length,
|
82
|
+
|
83
|
+
newDate = '';
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
if (Array.isArray(date)) {
|
88
|
+
|
89
|
+
date.forEach(function (d) {
|
90
|
+
|
91
|
+
_this.selectDate(d)
|
92
|
+
|
93
|
+
});
|
94
|
+
|
95
|
+
return;
|
96
|
+
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
//1721行目〜
|
102
|
+
|
103
|
+
_renderTypes: {
|
104
|
+
|
105
|
+
days: function () {
|
106
|
+
|
107
|
+
var dayNames = this._getDayNamesHtml(this.d.loc.firstDay),
|
108
|
+
|
109
|
+
days = this._getDaysHtml(this.d.currentDate);
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
this.$cells.html(days);
|
114
|
+
|
115
|
+
this.$names.html(dayNames)
|
116
|
+
|
117
|
+
},
|
118
|
+
|
119
|
+
months: function () {
|
120
|
+
|
121
|
+
var html = this._getMonthsHtml(this.d.currentDate);
|
122
|
+
|
123
|
+
this.$cells.html(html)
|
124
|
+
|
125
|
+
},
|
126
|
+
|
127
|
+
years: function () {
|
128
|
+
|
129
|
+
var html = this._getYearsHtml(this.d.currentDate);
|
130
|
+
|
131
|
+
this.$cells.html(html)
|
132
|
+
|
133
|
+
}
|
134
|
+
|
135
|
+
},
|
136
|
+
|
137
|
+
```
|
1
説明文修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
```
|
31
|
+
```jQuery
|
32
32
|
|
33
33
|
var textarea = $('#test').val();
|
34
34
|
|