|
169 | 169 | if (typeof options.applyClass == 'string') |
170 | 170 | this.applyClass = options.applyClass; |
171 | 171 |
|
172 | | - if (typeof options.cancelClass == 'string') |
| 172 | + if (typeof options.cancelClass == 'string') |
173 | 173 | this.cancelClass = options.cancelClass; |
174 | 174 |
|
175 | 175 | if (typeof options.ranges == 'object') { |
|
227 | 227 | iterator--; |
228 | 228 | } |
229 | 229 | } |
| 230 | + |
| 231 | + if (typeof options.locale.applyLabel == 'string') { |
| 232 | + this.locale.applyLabel = options.locale.applyLabel; |
| 233 | + } |
| 234 | + |
| 235 | + if (typeof options.locale.cancelLabel == 'string') { |
| 236 | + this.locale.cancelLabel = options.locale.cancelLabel; |
| 237 | + } |
| 238 | + |
| 239 | + if (typeof options.locale.fromLabel == 'string') { |
| 240 | + this.locale.fromLabel = options.locale.fromLabel; |
| 241 | + } |
| 242 | + |
| 243 | + if (typeof options.locale.toLabel == 'string') { |
| 244 | + this.locale.toLabel = options.locale.toLabel; |
| 245 | + } |
| 246 | + |
| 247 | + if (typeof options.locale.weekLabel == 'string') { |
| 248 | + this.locale.weekLabel = options.locale.weekLabel; |
| 249 | + } |
| 250 | + |
| 251 | + if (typeof options.locale.customRangeLabel == 'string') { |
| 252 | + this.locale.customRangeLabel = options.locale.customRangeLabel; |
| 253 | + } |
230 | 254 | } |
231 | 255 |
|
232 | 256 | if (typeof options.opens == 'string') |
|
347 | 371 | if (!this.timePicker) |
348 | 372 | this.startDate = this.startDate.startOf('day'); |
349 | 373 |
|
350 | | - this.oldStartDate = this.startDate.clone(); |
| 374 | + this.oldStartDate = this.startDate.clone(); |
351 | 375 |
|
352 | 376 | this.updateView(); |
353 | | - this.updateCalendars(); |
| 377 | + this.updateCalendars(); |
354 | 378 | }, |
355 | 379 |
|
356 | 380 | setEndDate: function(endDate) { |
|
363 | 387 | if (!this.timePicker) |
364 | 388 | this.endDate = this.endDate.startOf('day'); |
365 | 389 |
|
366 | | - this.endDate = this.endDate.clone(); |
| 390 | + this.endDate = this.endDate.clone(); |
367 | 391 |
|
368 | 392 | this.updateView(); |
369 | 393 | this.updateCalendars(); |
|
0 commit comments