bootstrap3-datetimepicker-rails 3.0.2.1 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5ff932fd4a46d57a323f954467d1b90917653ca
4
- data.tar.gz: f5fdbe7ac674615c373ecaf4fbbe1cbda76c7da1
3
+ metadata.gz: 8b1f48c60633d4ecf62be81c439c32d385b54451
4
+ data.tar.gz: 33314a3aae30a0c13ac35c1c3c62e97aeb478b07
5
5
  SHA512:
6
- metadata.gz: 508f9a55183e6da8250d82c8bd7bb98c490381ef9cd31131a77200202e67cc761f68118a29658b47bfcedb4abeca361e73b79d2af9fb97b70d2b2afaba3680f7
7
- data.tar.gz: 27bcbc842078010fb931b40d6bcaefd088f01ad37e0b04cad6f12974bbee16c14fb5f9be0e46c480fc46b0128a1515809f20ad59be8b948dce6af91c4f230833
6
+ metadata.gz: e8272c7a90466349cec5153beb847e137ea43c9f7c14a604614ed0209653e5997a86760025e05308692c7c423f45436f6a6d4d963af2f9368ad32f008507c23c
7
+ data.tar.gz: c882ad0dd267427d34baee46a73555a121c8193c376ad742f703641617b1b74486bbe471dc322ef705c771ee3e3cb0e12f7e6cb4a922fc11d0715282189920c2
@@ -1,5 +1,5 @@
1
1
  module Bootstrap3Datetimepicker
2
2
  module Rails
3
- VERSION = '3.0.2.1'
3
+ VERSION = '3.0.3'
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*
2
- //! version : 3.0.2
2
+ //! version : 3.0.3
3
3
  =========================================================
4
4
  bootstrap-datetimepicker.js
5
5
  https://github.com/Eonasdan/bootstrap-datetimepicker
@@ -26,7 +26,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
26
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
27
  THE SOFTWARE.
28
28
  */
29
- ; (function (factory) {
29
+ ;(function (root, factory) {
30
30
  'use strict';
31
31
  if (typeof define === 'function' && define.amd) {
32
32
  // AMD is used - Register as an anonymous module.
@@ -34,16 +34,14 @@ THE SOFTWARE.
34
34
  } else {
35
35
  // AMD is not used - Attempt to fetch dependencies from scope.
36
36
  if (!jQuery) {
37
- throw 'bootstrap-datetimepicker requires jQuery to be loaded first';
38
- } else if (!moment) {
39
- throw 'bootstrap-datetimepicker requires moment.js to be loaded first';
40
- } else {
41
- factory(jQuery, moment);
37
+ throw new Error('bootstrap-datetimepicker requires jQuery to be loaded first');
42
38
  }
39
+ if (!moment) {
40
+ throw new Error('bootstrap-datetimepicker requires moment.js to be loaded first');
41
+ }
42
+ factory(root.jQuery, moment);
43
43
  }
44
- }
45
-
46
- (function ($, moment) {
44
+ }(this, function ($, moment) {
47
45
  'use strict';
48
46
  if (typeof moment === 'undefined') {
49
47
  throw new Error('momentjs is required');
@@ -51,22 +49,19 @@ THE SOFTWARE.
51
49
 
52
50
  var dpgId = 0,
53
51
 
54
- pMoment = moment,
55
-
56
- // ReSharper disable once InconsistentNaming
57
52
  DateTimePicker = function (element, options) {
58
53
  var defaults = $.fn.datetimepicker.defaults,
59
54
 
60
- icons = {
61
- time: 'glyphicon glyphicon-time',
62
- date: 'glyphicon glyphicon-calendar',
63
- up: 'glyphicon glyphicon-chevron-up',
64
- down: 'glyphicon glyphicon-chevron-down'
65
- },
55
+ icons = {
56
+ time: 'glyphicon glyphicon-time',
57
+ date: 'glyphicon glyphicon-calendar',
58
+ up: 'glyphicon glyphicon-chevron-up',
59
+ down: 'glyphicon glyphicon-chevron-down'
60
+ },
66
61
 
67
- picker = this,
62
+ picker = this,
68
63
 
69
- dDate,
64
+ dDate,
70
65
 
71
66
  init = function () {
72
67
  var icon = false, localeData, rInterval;
@@ -82,8 +77,8 @@ THE SOFTWARE.
82
77
  }
83
78
 
84
79
  picker.id = dpgId++;
85
- pMoment.locale(picker.options.language);
86
- picker.date = pMoment();
80
+ moment.locale(picker.options.language);
81
+ picker.date = moment();
87
82
  picker.unset = false;
88
83
  picker.isInput = picker.element.is('input');
89
84
  picker.component = false;
@@ -98,7 +93,7 @@ THE SOFTWARE.
98
93
  }
99
94
  picker.format = picker.options.format;
100
95
 
101
- localeData = pMoment().localeData();
96
+ localeData = moment().localeData();
102
97
 
103
98
  if (!picker.format) {
104
99
  picker.format = (picker.options.pickDate ? localeData.longDateFormat('L') : '');
@@ -142,10 +137,6 @@ THE SOFTWARE.
142
137
 
143
138
  picker.widget = $(getTemplate()).appendTo(picker.options.widgetParent);
144
139
 
145
- if (picker.options.useSeconds && !picker.use24hours) {
146
- picker.widget.width(300);
147
- }
148
-
149
140
  picker.minViewMode = picker.options.minViewMode || 0;
150
141
  if (typeof picker.minViewMode === 'string') {
151
142
  switch (picker.minViewMode) {
@@ -175,6 +166,8 @@ THE SOFTWARE.
175
166
  }
176
167
  }
177
168
 
169
+ picker.viewMode = Math.max(picker.viewMode, picker.minViewMode);
170
+
178
171
  picker.options.disabledDates = indexGivenDates(picker.options.disabledDates);
179
172
  picker.options.enabledDates = indexGivenDates(picker.options.enabledDates);
180
173
 
@@ -279,6 +272,15 @@ THE SOFTWARE.
279
272
  if (eData.dateSidebyside !== undefined) {
280
273
  picker.options.sideBySide = eData.dateSidebyside;
281
274
  }
275
+ if (eData.dateDaysofweekdisabled !== undefined) {
276
+ picker.options.daysOfWeekDisabled = eData.dateDaysofweekdisabled;
277
+ }
278
+ // $.each(defaults, function (key) {
279
+ // var attributeName = 'date' + key.charAt(0).toUpperCase() + key.slice(1);
280
+ // if (eData[attributeName] !== undefined) {
281
+ // picker.options[key] = eData[attributeName];
282
+ // }
283
+ // });
282
284
  },
283
285
 
284
286
  place = function () {
@@ -342,13 +344,13 @@ THE SOFTWARE.
342
344
  },
343
345
 
344
346
  notifyChange = function (oldDate, eventType) {
345
- if (pMoment(picker.date).isSame(pMoment(oldDate))) {
347
+ if (moment(picker.date).isSame(moment(oldDate))) {
346
348
  return;
347
349
  }
348
350
  picker.element.trigger({
349
351
  type: 'dp.change',
350
- date: pMoment(picker.date),
351
- oldDate: pMoment(oldDate)
352
+ date: moment(picker.date),
353
+ oldDate: moment(oldDate)
352
354
  });
353
355
 
354
356
  if (eventType !== 'change') {
@@ -359,31 +361,31 @@ THE SOFTWARE.
359
361
  notifyError = function (date) {
360
362
  picker.element.trigger({
361
363
  type: 'dp.error',
362
- date: pMoment(date, picker.format, picker.options.useStrict)
364
+ date: moment(date, picker.format, picker.options.useStrict)
363
365
  });
364
366
  },
365
367
 
366
368
  update = function (newDate) {
367
- pMoment.locale(picker.options.language);
369
+ moment.locale(picker.options.language);
368
370
  var dateStr = newDate;
369
371
  if (!dateStr) {
370
372
  dateStr = getPickerInput().val();
371
373
  if (dateStr) {
372
- picker.date = pMoment(dateStr, picker.format, picker.options.useStrict);
374
+ picker.date = moment(dateStr, picker.format, picker.options.useStrict);
373
375
  }
374
376
  if (!picker.date) {
375
- picker.date = pMoment();
377
+ picker.date = moment();
376
378
  }
377
379
  }
378
- picker.viewDate = pMoment(picker.date).startOf('month');
380
+ picker.viewDate = moment(picker.date).startOf('month');
379
381
  fillDate();
380
382
  fillTime();
381
383
  },
382
384
 
383
385
  fillDow = function () {
384
- pMoment.locale(picker.options.language);
385
- var html = $('<tr>'), weekdaysMin = pMoment.weekdaysMin(), i;
386
- if (pMoment().localeData()._week.dow === 0) { // starts on Sunday
386
+ moment.locale(picker.options.language);
387
+ var html = $('<tr>'), weekdaysMin = moment.weekdaysMin(), i;
388
+ if (moment().localeData()._week.dow === 0) { // starts on Sunday
387
389
  for (i = 0; i < 7; i++) {
388
390
  html.append('<th class="dow">' + weekdaysMin[i] + '</th>');
389
391
  }
@@ -400,8 +402,8 @@ THE SOFTWARE.
400
402
  },
401
403
 
402
404
  fillMonths = function () {
403
- pMoment.locale(picker.options.language);
404
- var html = '', i, monthsShort = pMoment.monthsShort();
405
+ moment.locale(picker.options.language);
406
+ var html = '', i, monthsShort = moment.monthsShort();
405
407
  for (i = 0; i < 12; i++) {
406
408
  html += '<span class="month">' + monthsShort[i] + '</span>';
407
409
  }
@@ -412,7 +414,7 @@ THE SOFTWARE.
412
414
  if (!picker.options.pickDate) {
413
415
  return;
414
416
  }
415
- pMoment.locale(picker.options.language);
417
+ moment.locale(picker.options.language);
416
418
  var year = picker.viewDate.year(),
417
419
  month = picker.viewDate.month(),
418
420
  startYear = picker.options.minDate.year(),
@@ -420,7 +422,7 @@ THE SOFTWARE.
420
422
  endYear = picker.options.maxDate.year(),
421
423
  endMonth = picker.options.maxDate.month(),
422
424
  currentDate,
423
- prevMonth, nextMonth, html = [], row, clsName, i, days, yearCont, currentYear, months = pMoment.months();
425
+ prevMonth, nextMonth, html = [], row, clsName, i, days, yearCont, currentYear, months = moment.months();
424
426
 
425
427
  picker.widget.find('.datepicker-days').find('.disabled').removeClass('disabled');
426
428
  picker.widget.find('.datepicker-months').find('.disabled').removeClass('disabled');
@@ -429,7 +431,7 @@ THE SOFTWARE.
429
431
  picker.widget.find('.datepicker-days th:eq(1)').text(
430
432
  months[month] + ' ' + year);
431
433
 
432
- prevMonth = pMoment(picker.viewDate, picker.format, picker.options.useStrict).subtract(1, 'months');
434
+ prevMonth = moment(picker.viewDate, picker.format, picker.options.useStrict).subtract(1, 'months');
433
435
  days = prevMonth.daysInMonth();
434
436
  prevMonth.date(days).startOf('week');
435
437
  if ((year === startYear && month <= startMonth) || year < startYear) {
@@ -439,9 +441,9 @@ THE SOFTWARE.
439
441
  picker.widget.find('.datepicker-days th:eq(2)').addClass('disabled');
440
442
  }
441
443
 
442
- nextMonth = pMoment(prevMonth).add(42, 'd');
444
+ nextMonth = moment(prevMonth).add(42, 'd');
443
445
  while (prevMonth.isBefore(nextMonth)) {
444
- if (prevMonth.weekday() === pMoment().startOf('week').weekday()) {
446
+ if (prevMonth.weekday() === moment().startOf('week').weekday()) {
445
447
  row = $('<tr>');
446
448
  html.push(row);
447
449
  }
@@ -451,14 +453,14 @@ THE SOFTWARE.
451
453
  } else if (prevMonth.year() > year || (prevMonth.year() === year && prevMonth.month() > month)) {
452
454
  clsName += ' new';
453
455
  }
454
- if (prevMonth.isSame(pMoment({y: picker.date.year(), M: picker.date.month(), d: picker.date.date()}))) {
456
+ if (prevMonth.isSame(moment({y: picker.date.year(), M: picker.date.month(), d: picker.date.date()}))) {
455
457
  clsName += ' active';
456
458
  }
457
459
  if (isInDisableDates(prevMonth, 'day') || !isInEnableDates(prevMonth)) {
458
460
  clsName += ' disabled';
459
461
  }
460
462
  if (picker.options.showToday === true) {
461
- if (prevMonth.isSame(pMoment(), 'day')) {
463
+ if (prevMonth.isSame(moment(), 'day')) {
462
464
  clsName += ' today';
463
465
  }
464
466
  }
@@ -485,10 +487,10 @@ THE SOFTWARE.
485
487
  if (currentYear === year) {
486
488
  months.eq(picker.date.month()).addClass('active');
487
489
  }
488
- if (currentYear - 1 < startYear) {
490
+ if (year - 1 < startYear) {
489
491
  picker.widget.find('.datepicker-months th:eq(0)').addClass('disabled');
490
492
  }
491
- if (currentYear + 1 > endYear) {
493
+ if (year + 1 > endYear) {
492
494
  picker.widget.find('.datepicker-months th:eq(2)').addClass('disabled');
493
495
  }
494
496
  for (i = 0; i < 12; i++) {
@@ -502,7 +504,7 @@ THE SOFTWARE.
502
504
  html = '';
503
505
  year = parseInt(year / 10, 10) * 10;
504
506
  yearCont = picker.widget.find('.datepicker-years').find(
505
- 'th:eq(1)').text(year + '-' + (year + 9)).end().find('td');
507
+ 'th:eq(1)').text(year + '-' + (year + 9)).parents('table').find('td');
506
508
  picker.widget.find('.datepicker-years').find('th').removeClass('disabled');
507
509
  if (startYear > year) {
508
510
  picker.widget.find('.datepicker-years').find('th:eq(0)').addClass('disabled');
@@ -519,7 +521,7 @@ THE SOFTWARE.
519
521
  },
520
522
 
521
523
  fillHours = function () {
522
- pMoment.locale(picker.options.language);
524
+ moment.locale(picker.options.language);
523
525
  var table = picker.widget.find('.timepicker .timepicker-hours table'), html = '', current, i, j;
524
526
  table.parent().hide();
525
527
  if (picker.use24hours) {
@@ -606,13 +608,13 @@ THE SOFTWARE.
606
608
  e.stopPropagation();
607
609
  e.preventDefault();
608
610
  picker.unset = false;
609
- var target = $(e.target).closest('span, td, th'), month, year, step, day, oldDate = pMoment(picker.date);
611
+ var target = $(e.target).closest('span, td, th'), month, year, step, day, oldDate = moment(picker.date);
610
612
  if (target.length === 1) {
611
613
  if (!target.is('.disabled')) {
612
614
  switch (target[0].nodeName.toLowerCase()) {
613
615
  case 'th':
614
616
  switch (target[0].className) {
615
- case 'switch':
617
+ case 'picker-switch':
616
618
  showMode(1);
617
619
  break;
618
620
  case 'prev':
@@ -635,7 +637,7 @@ THE SOFTWARE.
635
637
  picker.viewDate.year(year);
636
638
  }
637
639
  if (picker.viewMode === picker.minViewMode) {
638
- picker.date = pMoment({
640
+ picker.date = moment({
639
641
  y: picker.viewDate.year(),
640
642
  M: picker.viewDate.month(),
641
643
  d: picker.viewDate.date(),
@@ -643,8 +645,8 @@ THE SOFTWARE.
643
645
  m: picker.date.minutes(),
644
646
  s: picker.date.seconds()
645
647
  });
646
- notifyChange(oldDate, e.type);
647
648
  set();
649
+ notifyChange(oldDate, e.type);
648
650
  }
649
651
  showMode(-1);
650
652
  fillDate();
@@ -669,7 +671,7 @@ THE SOFTWARE.
669
671
  month += 1;
670
672
  }
671
673
  }
672
- picker.date = pMoment({
674
+ picker.date = moment({
673
675
  y: year,
674
676
  M: month,
675
677
  d: day,
@@ -678,7 +680,7 @@ THE SOFTWARE.
678
680
  s: picker.date.seconds()
679
681
  }
680
682
  );
681
- picker.viewDate = pMoment({
683
+ picker.viewDate = moment({
682
684
  y: year, M: month, d: Math.min(28, day)
683
685
  });
684
686
  fillDate();
@@ -748,8 +750,16 @@ THE SOFTWARE.
748
750
 
749
751
  selectHour: function (e) {
750
752
  var hour = parseInt($(e.target).text(), 10);
751
- if (picker.date.hours() > 12) {
752
- hour += 12;
753
+ if (!picker.use24hours) {
754
+ if (picker.date.hours() >= 12) {
755
+ if (hour !== 12) {
756
+ hour += 12;
757
+ }
758
+ } else {
759
+ if (hour === 12) {
760
+ hour = 0;
761
+ }
762
+ }
753
763
  }
754
764
  picker.date.hours(hour);
755
765
  actions.showPicker.call(picker);
@@ -767,12 +777,12 @@ THE SOFTWARE.
767
777
  },
768
778
 
769
779
  doAction = function (e) {
770
- var oldDate = pMoment(picker.date),
780
+ var oldDate = moment(picker.date),
771
781
  action = $(e.currentTarget).data('action'),
772
782
  rv = actions[action].apply(picker, arguments);
773
783
  stopEvent(e);
774
784
  if (!picker.date) {
775
- picker.date = pMoment({y: 1970});
785
+ picker.date = moment({y: 1970});
776
786
  }
777
787
  set();
778
788
  fillTime();
@@ -792,8 +802,8 @@ THE SOFTWARE.
792
802
  },
793
803
 
794
804
  change = function (e) {
795
- pMoment.locale(picker.options.language);
796
- var input = $(e.target), oldDate = pMoment(picker.date), newDate = pMoment(input.val(), picker.format, picker.options.useStrict);
805
+ moment.locale(picker.options.language);
806
+ var input = $(e.target), oldDate = moment(picker.date), newDate = moment(input.val(), picker.format, picker.options.useStrict);
797
807
  if (newDate.isValid() && !isInDisableDates(newDate) && isInEnableDates(newDate)) {
798
808
  update();
799
809
  picker.setValue(newDate);
@@ -837,12 +847,15 @@ THE SOFTWARE.
837
847
  expanded.collapse('hide');
838
848
  closed.collapse('show');
839
849
  $this.find('span').toggleClass(picker.options.icons.time + ' ' + picker.options.icons.date);
840
- picker.element.find('[class^="input-group-"] span').toggleClass(picker.options.icons.time + ' ' + picker.options.icons.date);
850
+ if (picker.component) {
851
+ picker.component.find('span').toggleClass(picker.options.icons.time + ' ' + picker.options.icons.date);
852
+ }
841
853
  }
842
854
  });
843
855
  }
844
856
  if (picker.isInput) {
845
857
  picker.element.on({
858
+ 'click': $.proxy(picker.show, this),
846
859
  'focus': $.proxy(picker.show, this),
847
860
  'change': $.proxy(change, this),
848
861
  'blur': $.proxy(picker.hide, this)
@@ -853,6 +866,7 @@ THE SOFTWARE.
853
866
  }, 'input');
854
867
  if (picker.component) {
855
868
  picker.component.on('click', $.proxy(picker.show, this));
869
+ picker.component.on('mousedown', $.proxy(stopEvent, this));
856
870
  } else {
857
871
  picker.element.on('click', $.proxy(picker.show, this));
858
872
  }
@@ -878,7 +892,9 @@ THE SOFTWARE.
878
892
  if (picker.isInput) {
879
893
  picker.element.off({
880
894
  'focus': picker.show,
881
- 'change': picker.change
895
+ 'change': picker.change,
896
+ 'click': picker.show,
897
+ 'blur' : picker.hide
882
898
  });
883
899
  } else {
884
900
  picker.element.off({
@@ -886,6 +902,7 @@ THE SOFTWARE.
886
902
  }, 'input');
887
903
  if (picker.component) {
888
904
  picker.component.off('click', picker.show);
905
+ picker.component.off('mousedown', picker.stopEvent);
889
906
  } else {
890
907
  picker.element.off('click', picker.show);
891
908
  }
@@ -915,10 +932,10 @@ THE SOFTWARE.
915
932
  },
916
933
 
917
934
  set = function () {
918
- pMoment.locale(picker.options.language);
935
+ moment.locale(picker.options.language);
919
936
  var formatted = '';
920
937
  if (!picker.unset) {
921
- formatted = pMoment(picker.date).format(picker.format);
938
+ formatted = moment(picker.date).format(picker.format);
922
939
  }
923
940
  getPickerInput().val(formatted);
924
941
  picker.element.data('date', formatted);
@@ -928,19 +945,19 @@ THE SOFTWARE.
928
945
  },
929
946
 
930
947
  checkDate = function (direction, unit, amount) {
931
- pMoment.locale(picker.options.language);
948
+ moment.locale(picker.options.language);
932
949
  var newDate;
933
950
  if (direction === 'add') {
934
- newDate = pMoment(picker.date);
951
+ newDate = moment(picker.date);
935
952
  if (newDate.hours() === 23) {
936
953
  newDate.add(amount, unit);
937
954
  }
938
955
  newDate.add(amount, unit);
939
956
  }
940
957
  else {
941
- newDate = pMoment(picker.date).subtract(amount, unit);
958
+ newDate = moment(picker.date).subtract(amount, unit);
942
959
  }
943
- if (isInDisableDates(pMoment(newDate.subtract(amount, unit))) || isInDisableDates(newDate)) {
960
+ if (isInDisableDates(moment(newDate.subtract(amount, unit))) || isInDisableDates(newDate)) {
944
961
  notifyError(newDate.format(picker.format));
945
962
  return;
946
963
  }
@@ -955,9 +972,9 @@ THE SOFTWARE.
955
972
  },
956
973
 
957
974
  isInDisableDates = function (date, timeUnit) {
958
- pMoment.locale(picker.options.language);
959
- var maxDate = pMoment(picker.options.maxDate, picker.format, picker.options.useStrict),
960
- minDate = pMoment(picker.options.minDate, picker.format, picker.options.useStrict);
975
+ moment.locale(picker.options.language);
976
+ var maxDate = moment(picker.options.maxDate, picker.format, picker.options.useStrict),
977
+ minDate = moment(picker.options.minDate, picker.format, picker.options.useStrict);
961
978
 
962
979
  if (timeUnit) {
963
980
  maxDate = maxDate.endOf(timeUnit);
@@ -973,7 +990,7 @@ THE SOFTWARE.
973
990
  return picker.options.disabledDates[date.format('YYYY-MM-DD')] === true;
974
991
  },
975
992
  isInEnableDates = function (date) {
976
- pMoment.locale(picker.options.language);
993
+ moment.locale(picker.options.language);
977
994
  if (picker.options.enabledDates === false) {
978
995
  return true;
979
996
  }
@@ -986,10 +1003,10 @@ THE SOFTWARE.
986
1003
  // (for example: picker.options.enabledDates['2014-02-27'] === true)
987
1004
  var givenDatesIndexed = {}, givenDatesCount = 0, i;
988
1005
  for (i = 0; i < givenDatesArray.length; i++) {
989
- if (pMoment.isMoment(givenDatesArray[i]) || givenDatesArray[i] instanceof Date) {
990
- dDate = pMoment(givenDatesArray[i]);
1006
+ if (moment.isMoment(givenDatesArray[i]) || givenDatesArray[i] instanceof Date) {
1007
+ dDate = moment(givenDatesArray[i]);
991
1008
  } else {
992
- dDate = pMoment(givenDatesArray[i], picker.format, picker.options.useStrict);
1009
+ dDate = moment(givenDatesArray[i], picker.format, picker.options.useStrict);
993
1010
  }
994
1011
  if (dDate.isValid()) {
995
1012
  givenDatesIndexed[dDate.format('YYYY-MM-DD')] = true;
@@ -1013,7 +1030,7 @@ THE SOFTWARE.
1013
1030
  getTemplate = function () {
1014
1031
  if (picker.options.pickDate && picker.options.pickTime) {
1015
1032
  var ret = '';
1016
- ret = '<div class="bootstrap-datetimepicker-widget' + (picker.options.sideBySide ? ' timepicker-sbs' : '') + ' dropdown-menu" style="z-index:9999 !important;">';
1033
+ ret = '<div class="bootstrap-datetimepicker-widget' + (picker.options.sideBySide ? ' timepicker-sbs' : '') + (picker.use24hours ? ' usetwentyfour' : '') + ' dropdown-menu" style="z-index:9999 !important;">';
1017
1034
  if (picker.options.sideBySide) {
1018
1035
  ret += '<div class="row">' +
1019
1036
  '<div class="col-sm-6 datepicker">' + dpGlobal.template + '</div>' +
@@ -1068,7 +1085,7 @@ THE SOFTWARE.
1068
1085
  headTemplate:
1069
1086
  '<thead>' +
1070
1087
  '<tr>' +
1071
- '<th class="prev">&lsaquo;</th><th colspan="5" class="switch"></th><th class="next">&rsaquo;</th>' +
1088
+ '<th class="prev">&lsaquo;</th><th colspan="5" class="picker-switch"></th><th class="next">&rsaquo;</th>' +
1072
1089
  '</tr>' +
1073
1090
  '</thead>',
1074
1091
  contTemplate:
@@ -1148,16 +1165,20 @@ THE SOFTWARE.
1148
1165
  if (picker.options.useCurrent) {
1149
1166
  if (getPickerInput().val() === '') {
1150
1167
  if (picker.options.minuteStepping !== 1) {
1151
- var mDate = pMoment(),
1168
+ var mDate = moment(),
1152
1169
  rInterval = picker.options.minuteStepping;
1153
1170
  mDate.minutes((Math.round(mDate.minutes() / rInterval) * rInterval) % 60).seconds(0);
1154
1171
  picker.setValue(mDate.format(picker.format));
1155
1172
  } else {
1156
- picker.setValue(pMoment().format(picker.format));
1173
+ picker.setValue(moment().format(picker.format));
1157
1174
  }
1158
1175
  notifyChange('', e.type);
1159
1176
  }
1160
1177
  }
1178
+ // if this is a click event on the input field and picker is already open don't hide it
1179
+ if (e && e.type === 'click' && picker.isInput && picker.widget.hasClass('picker-open')) {
1180
+ return;
1181
+ }
1161
1182
  if (picker.widget.hasClass('picker-open')) {
1162
1183
  picker.widget.hide();
1163
1184
  picker.widget.removeClass('picker-open');
@@ -1170,7 +1191,7 @@ THE SOFTWARE.
1170
1191
  place();
1171
1192
  picker.element.trigger({
1172
1193
  type: 'dp.show',
1173
- date: pMoment(picker.date)
1194
+ date: moment(picker.date)
1174
1195
  });
1175
1196
  attachDatePickerGlobalEvents();
1176
1197
  if (e) {
@@ -1196,10 +1217,7 @@ THE SOFTWARE.
1196
1217
  attachDatePickerEvents();
1197
1218
  };
1198
1219
 
1199
- picker.hide = function (event) {
1200
- if (event && $(event.target).is('#' + picker.element.attr('id'))) {
1201
- return;
1202
- }
1220
+ picker.hide = function () {
1203
1221
  // Ignore event if in the middle of a picker transition
1204
1222
  var collapse = picker.widget.find('.collapse'), i, collapseData;
1205
1223
  for (i = 0; i < collapse.length; i++) {
@@ -1214,26 +1232,28 @@ THE SOFTWARE.
1214
1232
  showMode();
1215
1233
  picker.element.trigger({
1216
1234
  type: 'dp.hide',
1217
- date: pMoment(picker.date)
1235
+ date: moment(picker.date)
1218
1236
  });
1219
1237
  detachDatePickerGlobalEvents();
1220
1238
  };
1221
1239
 
1222
1240
  picker.setValue = function (newDate) {
1223
- pMoment.locale(picker.options.language);
1241
+ moment.locale(picker.options.language);
1224
1242
  if (!newDate) {
1225
1243
  picker.unset = true;
1226
1244
  set();
1227
1245
  } else {
1228
1246
  picker.unset = false;
1229
1247
  }
1230
- if (!pMoment.isMoment(newDate)) {
1231
- newDate = (newDate instanceof Date) ? pMoment(newDate) : pMoment(newDate, picker.format, picker.options.useStrict);
1248
+ if (!moment.isMoment(newDate)) {
1249
+ newDate = (newDate instanceof Date) ? moment(newDate) : moment(newDate, picker.format, picker.options.useStrict);
1250
+ } else {
1251
+ newDate = newDate.locale(picker.options.language);
1232
1252
  }
1233
1253
  if (newDate.isValid()) {
1234
1254
  picker.date = newDate;
1235
1255
  set();
1236
- picker.viewDate = pMoment({y: picker.date.year(), M: picker.date.month()});
1256
+ picker.viewDate = moment({y: picker.date.year(), M: picker.date.month()});
1237
1257
  fillDate();
1238
1258
  fillTime();
1239
1259
  }
@@ -1246,11 +1266,11 @@ THE SOFTWARE.
1246
1266
  if (picker.unset) {
1247
1267
  return null;
1248
1268
  }
1249
- return pMoment(picker.date);
1269
+ return moment(picker.date);
1250
1270
  };
1251
1271
 
1252
1272
  picker.setDate = function (date) {
1253
- var oldDate = pMoment(picker.date);
1273
+ var oldDate = moment(picker.date);
1254
1274
  if (!date) {
1255
1275
  picker.setValue(null);
1256
1276
  } else {
@@ -1277,10 +1297,10 @@ THE SOFTWARE.
1277
1297
  if (date === undefined) {
1278
1298
  return;
1279
1299
  }
1280
- if (pMoment.isMoment(date) || date instanceof Date) {
1281
- picker.options.maxDate = pMoment(date);
1300
+ if (moment.isMoment(date) || date instanceof Date) {
1301
+ picker.options.maxDate = moment(date);
1282
1302
  } else {
1283
- picker.options.maxDate = pMoment(date, picker.format, picker.options.useStrict);
1303
+ picker.options.maxDate = moment(date, picker.format, picker.options.useStrict);
1284
1304
  }
1285
1305
  if (picker.viewDate) {
1286
1306
  update();
@@ -1291,10 +1311,10 @@ THE SOFTWARE.
1291
1311
  if (date === undefined) {
1292
1312
  return;
1293
1313
  }
1294
- if (pMoment.isMoment(date) || date instanceof Date) {
1295
- picker.options.minDate = pMoment(date);
1314
+ if (moment.isMoment(date) || date instanceof Date) {
1315
+ picker.options.minDate = moment(date);
1296
1316
  } else {
1297
- picker.options.minDate = pMoment(date, picker.format, picker.options.useStrict);
1317
+ picker.options.minDate = moment(date, picker.format, picker.options.useStrict);
1298
1318
  }
1299
1319
  if (picker.viewDate) {
1300
1320
  update();
@@ -1306,7 +1326,8 @@ THE SOFTWARE.
1306
1326
 
1307
1327
  $.fn.datetimepicker = function (options) {
1308
1328
  return this.each(function () {
1309
- var $this = $(this), data = $this.data('DateTimePicker');
1329
+ var $this = $(this),
1330
+ data = $this.data('DateTimePicker');
1310
1331
  if (!data) {
1311
1332
  $this.data('DateTimePicker', new DateTimePicker(this, options));
1312
1333
  }
@@ -1314,17 +1335,18 @@ THE SOFTWARE.
1314
1335
  };
1315
1336
 
1316
1337
  $.fn.datetimepicker.defaults = {
1338
+ format: false,
1317
1339
  pickDate: true,
1318
1340
  pickTime: true,
1319
1341
  useMinutes: true,
1320
1342
  useSeconds: false,
1321
1343
  useCurrent: true,
1322
1344
  minuteStepping: 1,
1323
- minDate: pMoment({y: 1900}),
1324
- maxDate: pMoment().add(100, 'y'),
1345
+ minDate: moment({y: 1900}),
1346
+ maxDate: moment().add(100, 'y'),
1325
1347
  showToday: true,
1326
1348
  collapse: true,
1327
- language: 'en',
1349
+ language: moment.locale(),
1328
1350
  defaultDate: '',
1329
1351
  disabledDates: false,
1330
1352
  enabledDates: false,
@@ -1332,7 +1354,7 @@ THE SOFTWARE.
1332
1354
  useStrict: false,
1333
1355
  direction: 'auto',
1334
1356
  sideBySide: false,
1335
- daysOfWeekDisabled: false,
1357
+ daysOfWeekDisabled: [],
1336
1358
  widgetParent: false
1337
1359
  };
1338
1360
  }));
@@ -1 +1 @@
1
- !function(a){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],a);else{if(!jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if(!moment)throw"bootstrap-datetimepicker requires moment.js to be loaded first";a(jQuery,moment)}}(function(a,b){"use strict";if("undefined"==typeof b)throw new Error("momentjs is required");var c=0,d=b,e=function(b,e){var f,g=a.fn.datetimepicker.defaults,h={time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},i=this,j=function(){var f,j,m=!1;if(i.options=a.extend({},g,e),i.options.icons=a.extend({},h,i.options.icons),i.element=a(b),l(),!i.options.pickTime&&!i.options.pickDate)throw new Error("Must choose at least one picker");if(i.id=c++,d.locale(i.options.language),i.date=d(),i.unset=!1,i.isInput=i.element.is("input"),i.component=!1,i.element.hasClass("input-group")&&(i.component=i.element.find(0===i.element.find(".datepickerbutton").size()?'[class^="input-group-"]':".datepickerbutton")),i.format=i.options.format,f=d().localeData(),i.format||(i.format=i.options.pickDate?f.longDateFormat("L"):"",i.options.pickDate&&i.options.pickTime&&(i.format+=" "),i.format+=i.options.pickTime?f.longDateFormat("LT"):"",i.options.useSeconds&&(-1!==f.longDateFormat("LT").indexOf(" A")?i.format=i.format.split(" A")[0]+":ss A":i.format+=":ss")),i.use24hours=i.format.toLowerCase().indexOf("a")<1,i.component&&(m=i.component.find("span")),i.options.pickTime&&m&&m.addClass(i.options.icons.time),i.options.pickDate&&m&&(m.removeClass(i.options.icons.time),m.addClass(i.options.icons.date)),i.options.widgetParent="string"==typeof i.options.widgetParent&&i.options.widgetParent||i.element.parents().filter(function(){return"scroll"===a(this).css("overflow-y")}).get(0)||"body",i.widget=a(P()).appendTo(i.options.widgetParent),i.options.useSeconds&&!i.use24hours&&i.widget.width(300),i.minViewMode=i.options.minViewMode||0,"string"==typeof i.minViewMode)switch(i.minViewMode){case"months":i.minViewMode=1;break;case"years":i.minViewMode=2;break;default:i.minViewMode=0}if(i.viewMode=i.options.viewMode||0,"string"==typeof i.viewMode)switch(i.viewMode){case"months":i.viewMode=1;break;case"years":i.viewMode=2;break;default:i.viewMode=0}i.options.disabledDates=N(i.options.disabledDates),i.options.enabledDates=N(i.options.enabledDates),i.startViewMode=i.viewMode,i.setMinDate(i.options.minDate),i.setMaxDate(i.options.maxDate),q(),r(),t(),u(),v(),p(),D(),E(),""!==i.options.defaultDate&&""===k().val()&&i.setValue(i.options.defaultDate),1!==i.options.minuteStepping&&(j=i.options.minuteStepping,i.date.minutes(Math.round(i.date.minutes()/j)*j%60).seconds(0))},k=function(){var a;if(i.isInput)return i.element;if(a=i.element.find(".datepickerinput"),0===a.size())a=i.element.find("input");else if(!a.is("input"))throw new Error('CSS class "datepickerinput" cannot be applied to non input element');return a},l=function(){var a;a=i.element.is("input")?i.element.data():i.element.find("input").data(),void 0!==a.dateFormat&&(i.options.format=a.dateFormat),void 0!==a.datePickdate&&(i.options.pickDate=a.datePickdate),void 0!==a.datePicktime&&(i.options.pickTime=a.datePicktime),void 0!==a.dateUseminutes&&(i.options.useMinutes=a.dateUseminutes),void 0!==a.dateUseseconds&&(i.options.useSeconds=a.dateUseseconds),void 0!==a.dateUsecurrent&&(i.options.useCurrent=a.dateUsecurrent),void 0!==a.dateMinutestepping&&(i.options.minuteStepping=a.dateMinutestepping),void 0!==a.dateMindate&&(i.options.minDate=a.dateMindate),void 0!==a.dateMaxdate&&(i.options.maxDate=a.dateMaxdate),void 0!==a.dateShowtoday&&(i.options.showToday=a.dateShowtoday),void 0!==a.dateCollapse&&(i.options.collapse=a.dateCollapse),void 0!==a.dateLanguage&&(i.options.language=a.dateLanguage),void 0!==a.dateDefaultdate&&(i.options.defaultDate=a.dateDefaultdate),void 0!==a.dateDisableddates&&(i.options.disabledDates=a.dateDisableddates),void 0!==a.dateEnableddates&&(i.options.enabledDates=a.dateEnableddates),void 0!==a.dateIcons&&(i.options.icons=a.dateIcons),void 0!==a.dateUsestrict&&(i.options.useStrict=a.dateUsestrict),void 0!==a.dateDirection&&(i.options.direction=a.dateDirection),void 0!==a.dateSidebyside&&(i.options.sideBySide=a.dateSidebyside)},m=function(){var b,c="absolute",d=i.component?i.component.offset():i.element.offset(),e=a(window);i.width=i.component?i.component.outerWidth():i.element.outerWidth(),d.top=d.top+i.element.outerHeight(),"up"===i.options.direction?b="top":"bottom"===i.options.direction?b="bottom":"auto"===i.options.direction&&(b=d.top+i.widget.height()>e.height()+e.scrollTop()&&i.widget.height()+i.element.outerHeight()<d.top?"top":"bottom"),"top"===b?(d.top-=i.widget.height()+i.element.outerHeight()+15,i.widget.addClass("top").removeClass("bottom")):(d.top+=1,i.widget.addClass("bottom").removeClass("top")),void 0!==i.options.width&&i.widget.width(i.options.width),"left"===i.options.orientation&&(i.widget.addClass("left-oriented"),d.left=d.left-i.widget.width()+20),I()&&(c="fixed",d.top-=e.scrollTop(),d.left-=e.scrollLeft()),e.width()<d.left+i.widget.outerWidth()?(d.right=e.width()-d.left-i.width,d.left="auto",i.widget.addClass("pull-right")):(d.right="auto",i.widget.removeClass("pull-right")),i.widget.css({position:c,top:d.top,left:d.left,right:d.right})},n=function(a,b){d(i.date).isSame(d(a))||(i.element.trigger({type:"dp.change",date:d(i.date),oldDate:d(a)}),"change"!==b&&i.element.change())},o=function(a){i.element.trigger({type:"dp.error",date:d(a,i.format,i.options.useStrict)})},p=function(a){d.locale(i.options.language);var b=a;b||(b=k().val(),b&&(i.date=d(b,i.format,i.options.useStrict)),i.date||(i.date=d())),i.viewDate=d(i.date).startOf("month"),s(),w()},q=function(){d.locale(i.options.language);var b,c=a("<tr>"),e=d.weekdaysMin();if(0===d().localeData()._week.dow)for(b=0;7>b;b++)c.append('<th class="dow">'+e[b]+"</th>");else for(b=1;8>b;b++)c.append(7===b?'<th class="dow">'+e[0]+"</th>":'<th class="dow">'+e[b]+"</th>");i.widget.find(".datepicker-days thead").append(c)},r=function(){d.locale(i.options.language);var a,b="",c=d.monthsShort();for(a=0;12>a;a++)b+='<span class="month">'+c[a]+"</span>";i.widget.find(".datepicker-months td").append(b)},s=function(){if(i.options.pickDate){d.locale(i.options.language);var b,c,e,f,g,h,j,k,l,m=i.viewDate.year(),n=i.viewDate.month(),o=i.options.minDate.year(),p=i.options.minDate.month(),q=i.options.maxDate.year(),r=i.options.maxDate.month(),s=[],t=d.months();for(i.widget.find(".datepicker-days").find(".disabled").removeClass("disabled"),i.widget.find(".datepicker-months").find(".disabled").removeClass("disabled"),i.widget.find(".datepicker-years").find(".disabled").removeClass("disabled"),i.widget.find(".datepicker-days th:eq(1)").text(t[n]+" "+m),c=d(i.viewDate,i.format,i.options.useStrict).subtract(1,"months"),j=c.daysInMonth(),c.date(j).startOf("week"),(m===o&&p>=n||o>m)&&i.widget.find(".datepicker-days th:eq(0)").addClass("disabled"),(m===q&&n>=r||m>q)&&i.widget.find(".datepicker-days th:eq(2)").addClass("disabled"),e=d(c).add(42,"d");c.isBefore(e);){if(c.weekday()===d().startOf("week").weekday()&&(f=a("<tr>"),s.push(f)),g="",c.year()<m||c.year()===m&&c.month()<n?g+=" old":(c.year()>m||c.year()===m&&c.month()>n)&&(g+=" new"),c.isSame(d({y:i.date.year(),M:i.date.month(),d:i.date.date()}))&&(g+=" active"),(L(c,"day")||!M(c))&&(g+=" disabled"),i.options.showToday===!0&&c.isSame(d(),"day")&&(g+=" today"),i.options.daysOfWeekDisabled)for(h=0;h<i.options.daysOfWeekDisabled.length;h++)if(c.day()===i.options.daysOfWeekDisabled[h]){g+=" disabled";break}f.append('<td class="day'+g+'">'+c.date()+"</td>"),b=c.date(),c.add(1,"d"),b===c.date()&&c.add(1,"d")}for(i.widget.find(".datepicker-days tbody").empty().append(s),l=i.date.year(),t=i.widget.find(".datepicker-months").find("th:eq(1)").text(m).end().find("span").removeClass("active"),l===m&&t.eq(i.date.month()).addClass("active"),o>l-1&&i.widget.find(".datepicker-months th:eq(0)").addClass("disabled"),l+1>q&&i.widget.find(".datepicker-months th:eq(2)").addClass("disabled"),h=0;12>h;h++)m===o&&p>h||o>m?a(t[h]).addClass("disabled"):(m===q&&h>r||m>q)&&a(t[h]).addClass("disabled");for(s="",m=10*parseInt(m/10,10),k=i.widget.find(".datepicker-years").find("th:eq(1)").text(m+"-"+(m+9)).end().find("td"),i.widget.find(".datepicker-years").find("th").removeClass("disabled"),o>m&&i.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled"),m+9>q&&i.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled"),m-=1,h=-1;11>h;h++)s+='<span class="year'+(-1===h||10===h?" old":"")+(l===m?" active":"")+(o>m||m>q?" disabled":"")+'">'+m+"</span>",m+=1;k.html(s)}},t=function(){d.locale(i.options.language);var a,b,c,e=i.widget.find(".timepicker .timepicker-hours table"),f="";if(e.parent().hide(),i.use24hours)for(a=0,b=0;6>b;b+=1){for(f+="<tr>",c=0;4>c;c+=1)f+='<td class="hour">'+O(a.toString())+"</td>",a++;f+="</tr>"}else for(a=1,b=0;3>b;b+=1){for(f+="<tr>",c=0;4>c;c+=1)f+='<td class="hour">'+O(a.toString())+"</td>",a++;f+="</tr>"}e.html(f)},u=function(){var a,b,c=i.widget.find(".timepicker .timepicker-minutes table"),d="",e=0,f=i.options.minuteStepping;for(c.parent().hide(),1===f&&(f=5),a=0;a<Math.ceil(60/f/4);a++){for(d+="<tr>",b=0;4>b;b+=1)60>e?(d+='<td class="minute">'+O(e.toString())+"</td>",e+=f):d+="<td></td>";d+="</tr>"}c.html(d)},v=function(){var a,b,c=i.widget.find(".timepicker .timepicker-seconds table"),d="",e=0;for(c.parent().hide(),a=0;3>a;a++){for(d+="<tr>",b=0;4>b;b+=1)d+='<td class="second">'+O(e.toString())+"</td>",e+=5;d+="</tr>"}c.html(d)},w=function(){if(i.date){var a=i.widget.find(".timepicker span[data-time-component]"),b=i.date.hours(),c=i.date.format("A");i.use24hours||(0===b?b=12:12!==b&&(b%=12),i.widget.find(".timepicker [data-action=togglePeriod]").text(c)),a.filter("[data-time-component=hours]").text(O(b)),a.filter("[data-time-component=minutes]").text(O(i.date.minutes())),a.filter("[data-time-component=seconds]").text(O(i.date.second()))}},x=function(b){b.stopPropagation(),b.preventDefault(),i.unset=!1;var c,e,f,g,h=a(b.target).closest("span, td, th"),j=d(i.date);if(1===h.length&&!h.is(".disabled"))switch(h[0].nodeName.toLowerCase()){case"th":switch(h[0].className){case"switch":D(1);break;case"prev":case"next":f=Q.modes[i.viewMode].navStep,"prev"===h[0].className&&(f=-1*f),i.viewDate.add(f,Q.modes[i.viewMode].navFnc),s()}break;case"span":h.is(".month")?(c=h.parent().find("span").index(h),i.viewDate.month(c)):(e=parseInt(h.text(),10)||0,i.viewDate.year(e)),i.viewMode===i.minViewMode&&(i.date=d({y:i.viewDate.year(),M:i.viewDate.month(),d:i.viewDate.date(),h:i.date.hours(),m:i.date.minutes(),s:i.date.seconds()}),n(j,b.type),J()),D(-1),s();break;case"td":h.is(".day")&&(g=parseInt(h.text(),10)||1,c=i.viewDate.month(),e=i.viewDate.year(),h.is(".old")?0===c?(c=11,e-=1):c-=1:h.is(".new")&&(11===c?(c=0,e+=1):c+=1),i.date=d({y:e,M:c,d:g,h:i.date.hours(),m:i.date.minutes(),s:i.date.seconds()}),i.viewDate=d({y:e,M:c,d:Math.min(28,g)}),s(),J(),n(j,b.type))}},y={incrementHours:function(){K("add","hours",1)},incrementMinutes:function(){K("add","minutes",i.options.minuteStepping)},incrementSeconds:function(){K("add","seconds",1)},decrementHours:function(){K("subtract","hours",1)},decrementMinutes:function(){K("subtract","minutes",i.options.minuteStepping)},decrementSeconds:function(){K("subtract","seconds",1)},togglePeriod:function(){var a=i.date.hours();a>=12?a-=12:a+=12,i.date.hours(a)},showPicker:function(){i.widget.find(".timepicker > div:not(.timepicker-picker)").hide(),i.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){i.widget.find(".timepicker .timepicker-picker").hide(),i.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){i.widget.find(".timepicker .timepicker-picker").hide(),i.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){i.widget.find(".timepicker .timepicker-picker").hide(),i.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(b){var c=parseInt(a(b.target).text(),10);i.date.hours()>12&&(c+=12),i.date.hours(c),y.showPicker.call(i)},selectMinute:function(b){i.date.minutes(parseInt(a(b.target).text(),10)),y.showPicker.call(i)},selectSecond:function(b){i.date.seconds(parseInt(a(b.target).text(),10)),y.showPicker.call(i)}},z=function(b){var c=d(i.date),e=a(b.currentTarget).data("action"),f=y[e].apply(i,arguments);return A(b),i.date||(i.date=d({y:1970})),J(),w(),n(c,b.type),f},A=function(a){a.stopPropagation(),a.preventDefault()},B=function(a){27===a.keyCode&&i.hide()},C=function(b){d.locale(i.options.language);var c=a(b.target),e=d(i.date),f=d(c.val(),i.format,i.options.useStrict);f.isValid()&&!L(f)&&M(f)?(p(),i.setValue(f),n(e,b.type),J()):(i.viewDate=e,i.unset=!0,n(e,b.type),o(f))},D=function(a){a&&(i.viewMode=Math.max(i.minViewMode,Math.min(2,i.viewMode+a))),i.widget.find(".datepicker > div").hide().filter(".datepicker-"+Q.modes[i.viewMode].clsName).show()},E=function(){var b,c,d,e,f;i.widget.on("click",".datepicker *",a.proxy(x,this)),i.widget.on("click","[data-action]",a.proxy(z,this)),i.widget.on("mousedown",a.proxy(A,this)),i.element.on("keydown",a.proxy(B,this)),i.options.pickDate&&i.options.pickTime&&i.widget.on("click.togglePicker",".accordion-toggle",function(g){if(g.stopPropagation(),b=a(this),c=b.closest("ul"),d=c.find(".in"),e=c.find(".collapse:not(.in)"),d&&d.length){if(f=d.data("collapse"),f&&f.transitioning)return;d.collapse("hide"),e.collapse("show"),b.find("span").toggleClass(i.options.icons.time+" "+i.options.icons.date),i.element.find('[class^="input-group-"] span').toggleClass(i.options.icons.time+" "+i.options.icons.date)}}),i.isInput?i.element.on({focus:a.proxy(i.show,this),change:a.proxy(C,this),blur:a.proxy(i.hide,this)}):(i.element.on({change:a.proxy(C,this)},"input"),i.component?i.component.on("click",a.proxy(i.show,this)):i.element.on("click",a.proxy(i.show,this)))},F=function(){a(window).on("resize.datetimepicker"+i.id,a.proxy(m,this)),i.isInput||a(document).on("mousedown.datetimepicker"+i.id,a.proxy(i.hide,this))},G=function(){i.widget.off("click",".datepicker *",i.click),i.widget.off("click","[data-action]"),i.widget.off("mousedown",i.stopEvent),i.options.pickDate&&i.options.pickTime&&i.widget.off("click.togglePicker"),i.isInput?i.element.off({focus:i.show,change:i.change}):(i.element.off({change:i.change},"input"),i.component?i.component.off("click",i.show):i.element.off("click",i.show))},H=function(){a(window).off("resize.datetimepicker"+i.id),i.isInput||a(document).off("mousedown.datetimepicker"+i.id)},I=function(){if(i.element){var b,c=i.element.parents(),d=!1;for(b=0;b<c.length;b++)if("fixed"===a(c[b]).css("position")){d=!0;break}return d}return!1},J=function(){d.locale(i.options.language);var a="";i.unset||(a=d(i.date).format(i.format)),k().val(a),i.element.data("date",a),i.options.pickTime||i.hide()},K=function(a,b,c){d.locale(i.options.language);var e;return"add"===a?(e=d(i.date),23===e.hours()&&e.add(c,b),e.add(c,b)):e=d(i.date).subtract(c,b),L(d(e.subtract(c,b)))||L(e)?void o(e.format(i.format)):("add"===a?i.date.add(c,b):i.date.subtract(c,b),void(i.unset=!1))},L=function(a,b){d.locale(i.options.language);var c=d(i.options.maxDate,i.format,i.options.useStrict),e=d(i.options.minDate,i.format,i.options.useStrict);return b&&(c=c.endOf(b),e=e.startOf(b)),a.isAfter(c)||a.isBefore(e)?!0:i.options.disabledDates===!1?!1:i.options.disabledDates[a.format("YYYY-MM-DD")]===!0},M=function(a){return d.locale(i.options.language),i.options.enabledDates===!1?!0:i.options.enabledDates[a.format("YYYY-MM-DD")]===!0},N=function(a){var b,c={},e=0;for(b=0;b<a.length;b++)f=d.isMoment(a[b])||a[b]instanceof Date?d(a[b]):d(a[b],i.format,i.options.useStrict),f.isValid()&&(c[f.format("YYYY-MM-DD")]=!0,e++);return e>0?c:!1},O=function(a){return a=a.toString(),a.length>=2?a:"0"+a},P=function(){if(i.options.pickDate&&i.options.pickTime){var a="";return a='<div class="bootstrap-datetimepicker-widget'+(i.options.sideBySide?" timepicker-sbs":"")+' dropdown-menu" style="z-index:9999 !important;">',a+=i.options.sideBySide?'<div class="row"><div class="col-sm-6 datepicker">'+Q.template+'</div><div class="col-sm-6 timepicker">'+R.getTemplate()+"</div></div>":'<ul class="list-unstyled"><li'+(i.options.collapse?' class="collapse in"':"")+'><div class="datepicker">'+Q.template+'</div></li><li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="'+i.options.icons.time+'"></span></a></li><li'+(i.options.collapse?' class="collapse"':"")+'><div class="timepicker">'+R.getTemplate()+"</div></li></ul>",a+="</div>"}return i.options.pickTime?'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="timepicker">'+R.getTemplate()+"</div></div>":'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="datepicker">'+Q.template+"</div></div>"},Q={modes:[{clsName:"days",navFnc:"month",navStep:1},{clsName:"months",navFnc:"year",navStep:1},{clsName:"years",navFnc:"year",navStep:10}],headTemplate:'<thead><tr><th class="prev">&lsaquo;</th><th colspan="5" class="switch"></th><th class="next">&rsaquo;</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>'},R={hourTemplate:'<span data-action="showHours" data-time-component="hours" class="timepicker-hour"></span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"></span>',secondTemplate:'<span data-action="showSeconds" data-time-component="seconds" class="timepicker-second"></span>'};Q.template='<div class="datepicker-days"><table class="table-condensed">'+Q.headTemplate+'<tbody></tbody></table></div><div class="datepicker-months"><table class="table-condensed">'+Q.headTemplate+Q.contTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+Q.headTemplate+Q.contTemplate+"</table></div>",R.getTemplate=function(){return'<div class="timepicker-picker"><table class="table-condensed"><tr><td><a href="#" class="btn" data-action="incrementHours"><span class="'+i.options.icons.up+'"></span></a></td><td class="separator"></td><td>'+(i.options.useMinutes?'<a href="#" class="btn" data-action="incrementMinutes"><span class="'+i.options.icons.up+'"></span></a>':"")+"</td>"+(i.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="'+i.options.icons.up+'"></span></a></td>':"")+(i.use24hours?"":'<td class="separator"></td>')+"</tr><tr><td>"+R.hourTemplate+'</td> <td class="separator">:</td><td>'+(i.options.useMinutes?R.minuteTemplate:'<span class="timepicker-minute">00</span>')+"</td> "+(i.options.useSeconds?'<td class="separator">:</td><td>'+R.secondTemplate+"</td>":"")+(i.use24hours?"":'<td class="separator"></td><td><button type="button" class="btn btn-primary" data-action="togglePeriod"></button></td>')+'</tr><tr><td><a href="#" class="btn" data-action="decrementHours"><span class="'+i.options.icons.down+'"></span></a></td><td class="separator"></td><td>'+(i.options.useMinutes?'<a href="#" class="btn" data-action="decrementMinutes"><span class="'+i.options.icons.down+'"></span></a>':"")+"</td>"+(i.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="'+i.options.icons.down+'"></span></a></td>':"")+(i.use24hours?"":'<td class="separator"></td>')+'</tr></table></div><div class="timepicker-hours" data-action="selectHour"><table class="table-condensed"></table></div><div class="timepicker-minutes" data-action="selectMinute"><table class="table-condensed"></table></div>'+(i.options.useSeconds?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"></table></div>':"")},i.destroy=function(){G(),H(),i.widget.remove(),i.element.removeData("DateTimePicker"),i.component&&i.component.removeData("DateTimePicker")},i.show=function(a){if(i.options.useCurrent&&""===k().val()){if(1!==i.options.minuteStepping){var b=d(),c=i.options.minuteStepping;b.minutes(Math.round(b.minutes()/c)*c%60).seconds(0),i.setValue(b.format(i.format))}else i.setValue(d().format(i.format));n("",a.type)}i.widget.hasClass("picker-open")?(i.widget.hide(),i.widget.removeClass("picker-open")):(i.widget.show(),i.widget.addClass("picker-open")),i.height=i.component?i.component.outerHeight():i.element.outerHeight(),m(),i.element.trigger({type:"dp.show",date:d(i.date)}),F(),a&&A(a)},i.disable=function(){var a=i.element.find("input");a.prop("disabled")||(a.prop("disabled",!0),G())},i.enable=function(){var a=i.element.find("input");a.prop("disabled")&&(a.prop("disabled",!1),E())},i.hide=function(b){if(!b||!a(b.target).is("#"+i.element.attr("id"))){var c,e,f=i.widget.find(".collapse");for(c=0;c<f.length;c++)if(e=f.eq(c).data("collapse"),e&&e.transitioning)return;i.widget.hide(),i.widget.removeClass("picker-open"),i.viewMode=i.startViewMode,D(),i.element.trigger({type:"dp.hide",date:d(i.date)}),H()}},i.setValue=function(a){d.locale(i.options.language),a?i.unset=!1:(i.unset=!0,J()),d.isMoment(a)||(a=a instanceof Date?d(a):d(a,i.format,i.options.useStrict)),a.isValid()?(i.date=a,J(),i.viewDate=d({y:i.date.year(),M:i.date.month()}),s(),w()):o(a)},i.getDate=function(){return i.unset?null:d(i.date)},i.setDate=function(a){var b=d(i.date);i.setValue(a?a:null),n(b,"function")},i.setDisabledDates=function(a){i.options.disabledDates=N(a),i.viewDate&&p()},i.setEnabledDates=function(a){i.options.enabledDates=N(a),i.viewDate&&p()},i.setMaxDate=function(a){void 0!==a&&(i.options.maxDate=d.isMoment(a)||a instanceof Date?d(a):d(a,i.format,i.options.useStrict),i.viewDate&&p())},i.setMinDate=function(a){void 0!==a&&(i.options.minDate=d.isMoment(a)||a instanceof Date?d(a):d(a,i.format,i.options.useStrict),i.viewDate&&p())},j()};a.fn.datetimepicker=function(b){return this.each(function(){var c=a(this),d=c.data("DateTimePicker");d||c.data("DateTimePicker",new e(this,b))})},a.fn.datetimepicker.defaults={pickDate:!0,pickTime:!0,useMinutes:!0,useSeconds:!1,useCurrent:!0,minuteStepping:1,minDate:d({y:1900}),maxDate:d().add(100,"y"),showToday:!0,collapse:!0,language:"en",defaultDate:"",disabledDates:!1,enabledDates:!1,icons:{},useStrict:!1,direction:"auto",sideBySide:!1,daysOfWeekDisabled:!1,widgetParent:!1}});
1
+ !function(a,b){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],b);else{if(!jQuery)throw new Error("bootstrap-datetimepicker requires jQuery to be loaded first");if(!moment)throw new Error("bootstrap-datetimepicker requires moment.js to be loaded first");b(a.jQuery,moment)}}(this,function(a,b){"use strict";if("undefined"==typeof b)throw new Error("momentjs is required");var c=0,d=function(d,e){var f,g=a.fn.datetimepicker.defaults,h={time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},i=this,j=function(){var f,j,m=!1;if(i.options=a.extend({},g,e),i.options.icons=a.extend({},h,i.options.icons),i.element=a(d),l(),!i.options.pickTime&&!i.options.pickDate)throw new Error("Must choose at least one picker");if(i.id=c++,b.locale(i.options.language),i.date=b(),i.unset=!1,i.isInput=i.element.is("input"),i.component=!1,i.element.hasClass("input-group")&&(i.component=i.element.find(0===i.element.find(".datepickerbutton").size()?'[class^="input-group-"]':".datepickerbutton")),i.format=i.options.format,f=b().localeData(),i.format||(i.format=i.options.pickDate?f.longDateFormat("L"):"",i.options.pickDate&&i.options.pickTime&&(i.format+=" "),i.format+=i.options.pickTime?f.longDateFormat("LT"):"",i.options.useSeconds&&(-1!==f.longDateFormat("LT").indexOf(" A")?i.format=i.format.split(" A")[0]+":ss A":i.format+=":ss")),i.use24hours=i.format.toLowerCase().indexOf("a")<1,i.component&&(m=i.component.find("span")),i.options.pickTime&&m&&m.addClass(i.options.icons.time),i.options.pickDate&&m&&(m.removeClass(i.options.icons.time),m.addClass(i.options.icons.date)),i.options.widgetParent="string"==typeof i.options.widgetParent&&i.options.widgetParent||i.element.parents().filter(function(){return"scroll"===a(this).css("overflow-y")}).get(0)||"body",i.widget=a(P()).appendTo(i.options.widgetParent),i.minViewMode=i.options.minViewMode||0,"string"==typeof i.minViewMode)switch(i.minViewMode){case"months":i.minViewMode=1;break;case"years":i.minViewMode=2;break;default:i.minViewMode=0}if(i.viewMode=i.options.viewMode||0,"string"==typeof i.viewMode)switch(i.viewMode){case"months":i.viewMode=1;break;case"years":i.viewMode=2;break;default:i.viewMode=0}i.viewMode=Math.max(i.viewMode,i.minViewMode),i.options.disabledDates=N(i.options.disabledDates),i.options.enabledDates=N(i.options.enabledDates),i.startViewMode=i.viewMode,i.setMinDate(i.options.minDate),i.setMaxDate(i.options.maxDate),q(),r(),t(),u(),v(),p(),D(),E(),""!==i.options.defaultDate&&""===k().val()&&i.setValue(i.options.defaultDate),1!==i.options.minuteStepping&&(j=i.options.minuteStepping,i.date.minutes(Math.round(i.date.minutes()/j)*j%60).seconds(0))},k=function(){var a;if(i.isInput)return i.element;if(a=i.element.find(".datepickerinput"),0===a.size())a=i.element.find("input");else if(!a.is("input"))throw new Error('CSS class "datepickerinput" cannot be applied to non input element');return a},l=function(){var a;a=i.element.is("input")?i.element.data():i.element.find("input").data(),void 0!==a.dateFormat&&(i.options.format=a.dateFormat),void 0!==a.datePickdate&&(i.options.pickDate=a.datePickdate),void 0!==a.datePicktime&&(i.options.pickTime=a.datePicktime),void 0!==a.dateUseminutes&&(i.options.useMinutes=a.dateUseminutes),void 0!==a.dateUseseconds&&(i.options.useSeconds=a.dateUseseconds),void 0!==a.dateUsecurrent&&(i.options.useCurrent=a.dateUsecurrent),void 0!==a.dateMinutestepping&&(i.options.minuteStepping=a.dateMinutestepping),void 0!==a.dateMindate&&(i.options.minDate=a.dateMindate),void 0!==a.dateMaxdate&&(i.options.maxDate=a.dateMaxdate),void 0!==a.dateShowtoday&&(i.options.showToday=a.dateShowtoday),void 0!==a.dateCollapse&&(i.options.collapse=a.dateCollapse),void 0!==a.dateLanguage&&(i.options.language=a.dateLanguage),void 0!==a.dateDefaultdate&&(i.options.defaultDate=a.dateDefaultdate),void 0!==a.dateDisableddates&&(i.options.disabledDates=a.dateDisableddates),void 0!==a.dateEnableddates&&(i.options.enabledDates=a.dateEnableddates),void 0!==a.dateIcons&&(i.options.icons=a.dateIcons),void 0!==a.dateUsestrict&&(i.options.useStrict=a.dateUsestrict),void 0!==a.dateDirection&&(i.options.direction=a.dateDirection),void 0!==a.dateSidebyside&&(i.options.sideBySide=a.dateSidebyside),void 0!==a.dateDaysofweekdisabled&&(i.options.daysOfWeekDisabled=a.dateDaysofweekdisabled)},m=function(){var b,c="absolute",d=i.component?i.component.offset():i.element.offset(),e=a(window);i.width=i.component?i.component.outerWidth():i.element.outerWidth(),d.top=d.top+i.element.outerHeight(),"up"===i.options.direction?b="top":"bottom"===i.options.direction?b="bottom":"auto"===i.options.direction&&(b=d.top+i.widget.height()>e.height()+e.scrollTop()&&i.widget.height()+i.element.outerHeight()<d.top?"top":"bottom"),"top"===b?(d.top-=i.widget.height()+i.element.outerHeight()+15,i.widget.addClass("top").removeClass("bottom")):(d.top+=1,i.widget.addClass("bottom").removeClass("top")),void 0!==i.options.width&&i.widget.width(i.options.width),"left"===i.options.orientation&&(i.widget.addClass("left-oriented"),d.left=d.left-i.widget.width()+20),I()&&(c="fixed",d.top-=e.scrollTop(),d.left-=e.scrollLeft()),e.width()<d.left+i.widget.outerWidth()?(d.right=e.width()-d.left-i.width,d.left="auto",i.widget.addClass("pull-right")):(d.right="auto",i.widget.removeClass("pull-right")),i.widget.css({position:c,top:d.top,left:d.left,right:d.right})},n=function(a,c){b(i.date).isSame(b(a))||(i.element.trigger({type:"dp.change",date:b(i.date),oldDate:b(a)}),"change"!==c&&i.element.change())},o=function(a){i.element.trigger({type:"dp.error",date:b(a,i.format,i.options.useStrict)})},p=function(a){b.locale(i.options.language);var c=a;c||(c=k().val(),c&&(i.date=b(c,i.format,i.options.useStrict)),i.date||(i.date=b())),i.viewDate=b(i.date).startOf("month"),s(),w()},q=function(){b.locale(i.options.language);var c,d=a("<tr>"),e=b.weekdaysMin();if(0===b().localeData()._week.dow)for(c=0;7>c;c++)d.append('<th class="dow">'+e[c]+"</th>");else for(c=1;8>c;c++)d.append(7===c?'<th class="dow">'+e[0]+"</th>":'<th class="dow">'+e[c]+"</th>");i.widget.find(".datepicker-days thead").append(d)},r=function(){b.locale(i.options.language);var a,c="",d=b.monthsShort();for(a=0;12>a;a++)c+='<span class="month">'+d[a]+"</span>";i.widget.find(".datepicker-months td").append(c)},s=function(){if(i.options.pickDate){b.locale(i.options.language);var c,d,e,f,g,h,j,k,l,m=i.viewDate.year(),n=i.viewDate.month(),o=i.options.minDate.year(),p=i.options.minDate.month(),q=i.options.maxDate.year(),r=i.options.maxDate.month(),s=[],t=b.months();for(i.widget.find(".datepicker-days").find(".disabled").removeClass("disabled"),i.widget.find(".datepicker-months").find(".disabled").removeClass("disabled"),i.widget.find(".datepicker-years").find(".disabled").removeClass("disabled"),i.widget.find(".datepicker-days th:eq(1)").text(t[n]+" "+m),d=b(i.viewDate,i.format,i.options.useStrict).subtract(1,"months"),j=d.daysInMonth(),d.date(j).startOf("week"),(m===o&&p>=n||o>m)&&i.widget.find(".datepicker-days th:eq(0)").addClass("disabled"),(m===q&&n>=r||m>q)&&i.widget.find(".datepicker-days th:eq(2)").addClass("disabled"),e=b(d).add(42,"d");d.isBefore(e);){if(d.weekday()===b().startOf("week").weekday()&&(f=a("<tr>"),s.push(f)),g="",d.year()<m||d.year()===m&&d.month()<n?g+=" old":(d.year()>m||d.year()===m&&d.month()>n)&&(g+=" new"),d.isSame(b({y:i.date.year(),M:i.date.month(),d:i.date.date()}))&&(g+=" active"),(L(d,"day")||!M(d))&&(g+=" disabled"),i.options.showToday===!0&&d.isSame(b(),"day")&&(g+=" today"),i.options.daysOfWeekDisabled)for(h=0;h<i.options.daysOfWeekDisabled.length;h++)if(d.day()===i.options.daysOfWeekDisabled[h]){g+=" disabled";break}f.append('<td class="day'+g+'">'+d.date()+"</td>"),c=d.date(),d.add(1,"d"),c===d.date()&&d.add(1,"d")}for(i.widget.find(".datepicker-days tbody").empty().append(s),l=i.date.year(),t=i.widget.find(".datepicker-months").find("th:eq(1)").text(m).end().find("span").removeClass("active"),l===m&&t.eq(i.date.month()).addClass("active"),o>m-1&&i.widget.find(".datepicker-months th:eq(0)").addClass("disabled"),m+1>q&&i.widget.find(".datepicker-months th:eq(2)").addClass("disabled"),h=0;12>h;h++)m===o&&p>h||o>m?a(t[h]).addClass("disabled"):(m===q&&h>r||m>q)&&a(t[h]).addClass("disabled");for(s="",m=10*parseInt(m/10,10),k=i.widget.find(".datepicker-years").find("th:eq(1)").text(m+"-"+(m+9)).parents("table").find("td"),i.widget.find(".datepicker-years").find("th").removeClass("disabled"),o>m&&i.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled"),m+9>q&&i.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled"),m-=1,h=-1;11>h;h++)s+='<span class="year'+(-1===h||10===h?" old":"")+(l===m?" active":"")+(o>m||m>q?" disabled":"")+'">'+m+"</span>",m+=1;k.html(s)}},t=function(){b.locale(i.options.language);var a,c,d,e=i.widget.find(".timepicker .timepicker-hours table"),f="";if(e.parent().hide(),i.use24hours)for(a=0,c=0;6>c;c+=1){for(f+="<tr>",d=0;4>d;d+=1)f+='<td class="hour">'+O(a.toString())+"</td>",a++;f+="</tr>"}else for(a=1,c=0;3>c;c+=1){for(f+="<tr>",d=0;4>d;d+=1)f+='<td class="hour">'+O(a.toString())+"</td>",a++;f+="</tr>"}e.html(f)},u=function(){var a,b,c=i.widget.find(".timepicker .timepicker-minutes table"),d="",e=0,f=i.options.minuteStepping;for(c.parent().hide(),1===f&&(f=5),a=0;a<Math.ceil(60/f/4);a++){for(d+="<tr>",b=0;4>b;b+=1)60>e?(d+='<td class="minute">'+O(e.toString())+"</td>",e+=f):d+="<td></td>";d+="</tr>"}c.html(d)},v=function(){var a,b,c=i.widget.find(".timepicker .timepicker-seconds table"),d="",e=0;for(c.parent().hide(),a=0;3>a;a++){for(d+="<tr>",b=0;4>b;b+=1)d+='<td class="second">'+O(e.toString())+"</td>",e+=5;d+="</tr>"}c.html(d)},w=function(){if(i.date){var a=i.widget.find(".timepicker span[data-time-component]"),b=i.date.hours(),c=i.date.format("A");i.use24hours||(0===b?b=12:12!==b&&(b%=12),i.widget.find(".timepicker [data-action=togglePeriod]").text(c)),a.filter("[data-time-component=hours]").text(O(b)),a.filter("[data-time-component=minutes]").text(O(i.date.minutes())),a.filter("[data-time-component=seconds]").text(O(i.date.second()))}},x=function(c){c.stopPropagation(),c.preventDefault(),i.unset=!1;var d,e,f,g,h=a(c.target).closest("span, td, th"),j=b(i.date);if(1===h.length&&!h.is(".disabled"))switch(h[0].nodeName.toLowerCase()){case"th":switch(h[0].className){case"picker-switch":D(1);break;case"prev":case"next":f=Q.modes[i.viewMode].navStep,"prev"===h[0].className&&(f=-1*f),i.viewDate.add(f,Q.modes[i.viewMode].navFnc),s()}break;case"span":h.is(".month")?(d=h.parent().find("span").index(h),i.viewDate.month(d)):(e=parseInt(h.text(),10)||0,i.viewDate.year(e)),i.viewMode===i.minViewMode&&(i.date=b({y:i.viewDate.year(),M:i.viewDate.month(),d:i.viewDate.date(),h:i.date.hours(),m:i.date.minutes(),s:i.date.seconds()}),J(),n(j,c.type)),D(-1),s();break;case"td":h.is(".day")&&(g=parseInt(h.text(),10)||1,d=i.viewDate.month(),e=i.viewDate.year(),h.is(".old")?0===d?(d=11,e-=1):d-=1:h.is(".new")&&(11===d?(d=0,e+=1):d+=1),i.date=b({y:e,M:d,d:g,h:i.date.hours(),m:i.date.minutes(),s:i.date.seconds()}),i.viewDate=b({y:e,M:d,d:Math.min(28,g)}),s(),J(),n(j,c.type))}},y={incrementHours:function(){K("add","hours",1)},incrementMinutes:function(){K("add","minutes",i.options.minuteStepping)},incrementSeconds:function(){K("add","seconds",1)},decrementHours:function(){K("subtract","hours",1)},decrementMinutes:function(){K("subtract","minutes",i.options.minuteStepping)},decrementSeconds:function(){K("subtract","seconds",1)},togglePeriod:function(){var a=i.date.hours();a>=12?a-=12:a+=12,i.date.hours(a)},showPicker:function(){i.widget.find(".timepicker > div:not(.timepicker-picker)").hide(),i.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){i.widget.find(".timepicker .timepicker-picker").hide(),i.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){i.widget.find(".timepicker .timepicker-picker").hide(),i.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){i.widget.find(".timepicker .timepicker-picker").hide(),i.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(b){var c=parseInt(a(b.target).text(),10);i.use24hours||(i.date.hours()>=12?12!==c&&(c+=12):12===c&&(c=0)),i.date.hours(c),y.showPicker.call(i)},selectMinute:function(b){i.date.minutes(parseInt(a(b.target).text(),10)),y.showPicker.call(i)},selectSecond:function(b){i.date.seconds(parseInt(a(b.target).text(),10)),y.showPicker.call(i)}},z=function(c){var d=b(i.date),e=a(c.currentTarget).data("action"),f=y[e].apply(i,arguments);return A(c),i.date||(i.date=b({y:1970})),J(),w(),n(d,c.type),f},A=function(a){a.stopPropagation(),a.preventDefault()},B=function(a){27===a.keyCode&&i.hide()},C=function(c){b.locale(i.options.language);var d=a(c.target),e=b(i.date),f=b(d.val(),i.format,i.options.useStrict);f.isValid()&&!L(f)&&M(f)?(p(),i.setValue(f),n(e,c.type),J()):(i.viewDate=e,i.unset=!0,n(e,c.type),o(f))},D=function(a){a&&(i.viewMode=Math.max(i.minViewMode,Math.min(2,i.viewMode+a))),i.widget.find(".datepicker > div").hide().filter(".datepicker-"+Q.modes[i.viewMode].clsName).show()},E=function(){var b,c,d,e,f;i.widget.on("click",".datepicker *",a.proxy(x,this)),i.widget.on("click","[data-action]",a.proxy(z,this)),i.widget.on("mousedown",a.proxy(A,this)),i.element.on("keydown",a.proxy(B,this)),i.options.pickDate&&i.options.pickTime&&i.widget.on("click.togglePicker",".accordion-toggle",function(g){if(g.stopPropagation(),b=a(this),c=b.closest("ul"),d=c.find(".in"),e=c.find(".collapse:not(.in)"),d&&d.length){if(f=d.data("collapse"),f&&f.transitioning)return;d.collapse("hide"),e.collapse("show"),b.find("span").toggleClass(i.options.icons.time+" "+i.options.icons.date),i.component&&i.component.find("span").toggleClass(i.options.icons.time+" "+i.options.icons.date)}}),i.isInput?i.element.on({click:a.proxy(i.show,this),focus:a.proxy(i.show,this),change:a.proxy(C,this),blur:a.proxy(i.hide,this)}):(i.element.on({change:a.proxy(C,this)},"input"),i.component?(i.component.on("click",a.proxy(i.show,this)),i.component.on("mousedown",a.proxy(A,this))):i.element.on("click",a.proxy(i.show,this)))},F=function(){a(window).on("resize.datetimepicker"+i.id,a.proxy(m,this)),i.isInput||a(document).on("mousedown.datetimepicker"+i.id,a.proxy(i.hide,this))},G=function(){i.widget.off("click",".datepicker *",i.click),i.widget.off("click","[data-action]"),i.widget.off("mousedown",i.stopEvent),i.options.pickDate&&i.options.pickTime&&i.widget.off("click.togglePicker"),i.isInput?i.element.off({focus:i.show,change:i.change,click:i.show,blur:i.hide}):(i.element.off({change:i.change},"input"),i.component?(i.component.off("click",i.show),i.component.off("mousedown",i.stopEvent)):i.element.off("click",i.show))},H=function(){a(window).off("resize.datetimepicker"+i.id),i.isInput||a(document).off("mousedown.datetimepicker"+i.id)},I=function(){if(i.element){var b,c=i.element.parents(),d=!1;for(b=0;b<c.length;b++)if("fixed"===a(c[b]).css("position")){d=!0;break}return d}return!1},J=function(){b.locale(i.options.language);var a="";i.unset||(a=b(i.date).format(i.format)),k().val(a),i.element.data("date",a),i.options.pickTime||i.hide()},K=function(a,c,d){b.locale(i.options.language);var e;return"add"===a?(e=b(i.date),23===e.hours()&&e.add(d,c),e.add(d,c)):e=b(i.date).subtract(d,c),L(b(e.subtract(d,c)))||L(e)?void o(e.format(i.format)):("add"===a?i.date.add(d,c):i.date.subtract(d,c),void(i.unset=!1))},L=function(a,c){b.locale(i.options.language);var d=b(i.options.maxDate,i.format,i.options.useStrict),e=b(i.options.minDate,i.format,i.options.useStrict);return c&&(d=d.endOf(c),e=e.startOf(c)),a.isAfter(d)||a.isBefore(e)?!0:i.options.disabledDates===!1?!1:i.options.disabledDates[a.format("YYYY-MM-DD")]===!0},M=function(a){return b.locale(i.options.language),i.options.enabledDates===!1?!0:i.options.enabledDates[a.format("YYYY-MM-DD")]===!0},N=function(a){var c,d={},e=0;for(c=0;c<a.length;c++)f=b.isMoment(a[c])||a[c]instanceof Date?b(a[c]):b(a[c],i.format,i.options.useStrict),f.isValid()&&(d[f.format("YYYY-MM-DD")]=!0,e++);return e>0?d:!1},O=function(a){return a=a.toString(),a.length>=2?a:"0"+a},P=function(){if(i.options.pickDate&&i.options.pickTime){var a="";return a='<div class="bootstrap-datetimepicker-widget'+(i.options.sideBySide?" timepicker-sbs":"")+(i.use24hours?" usetwentyfour":"")+' dropdown-menu" style="z-index:9999 !important;">',a+=i.options.sideBySide?'<div class="row"><div class="col-sm-6 datepicker">'+Q.template+'</div><div class="col-sm-6 timepicker">'+R.getTemplate()+"</div></div>":'<ul class="list-unstyled"><li'+(i.options.collapse?' class="collapse in"':"")+'><div class="datepicker">'+Q.template+'</div></li><li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="'+i.options.icons.time+'"></span></a></li><li'+(i.options.collapse?' class="collapse"':"")+'><div class="timepicker">'+R.getTemplate()+"</div></li></ul>",a+="</div>"}return i.options.pickTime?'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="timepicker">'+R.getTemplate()+"</div></div>":'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="datepicker">'+Q.template+"</div></div>"},Q={modes:[{clsName:"days",navFnc:"month",navStep:1},{clsName:"months",navFnc:"year",navStep:1},{clsName:"years",navFnc:"year",navStep:10}],headTemplate:'<thead><tr><th class="prev">&lsaquo;</th><th colspan="5" class="picker-switch"></th><th class="next">&rsaquo;</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>'},R={hourTemplate:'<span data-action="showHours" data-time-component="hours" class="timepicker-hour"></span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"></span>',secondTemplate:'<span data-action="showSeconds" data-time-component="seconds" class="timepicker-second"></span>'};Q.template='<div class="datepicker-days"><table class="table-condensed">'+Q.headTemplate+'<tbody></tbody></table></div><div class="datepicker-months"><table class="table-condensed">'+Q.headTemplate+Q.contTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+Q.headTemplate+Q.contTemplate+"</table></div>",R.getTemplate=function(){return'<div class="timepicker-picker"><table class="table-condensed"><tr><td><a href="#" class="btn" data-action="incrementHours"><span class="'+i.options.icons.up+'"></span></a></td><td class="separator"></td><td>'+(i.options.useMinutes?'<a href="#" class="btn" data-action="incrementMinutes"><span class="'+i.options.icons.up+'"></span></a>':"")+"</td>"+(i.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="'+i.options.icons.up+'"></span></a></td>':"")+(i.use24hours?"":'<td class="separator"></td>')+"</tr><tr><td>"+R.hourTemplate+'</td> <td class="separator">:</td><td>'+(i.options.useMinutes?R.minuteTemplate:'<span class="timepicker-minute">00</span>')+"</td> "+(i.options.useSeconds?'<td class="separator">:</td><td>'+R.secondTemplate+"</td>":"")+(i.use24hours?"":'<td class="separator"></td><td><button type="button" class="btn btn-primary" data-action="togglePeriod"></button></td>')+'</tr><tr><td><a href="#" class="btn" data-action="decrementHours"><span class="'+i.options.icons.down+'"></span></a></td><td class="separator"></td><td>'+(i.options.useMinutes?'<a href="#" class="btn" data-action="decrementMinutes"><span class="'+i.options.icons.down+'"></span></a>':"")+"</td>"+(i.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="'+i.options.icons.down+'"></span></a></td>':"")+(i.use24hours?"":'<td class="separator"></td>')+'</tr></table></div><div class="timepicker-hours" data-action="selectHour"><table class="table-condensed"></table></div><div class="timepicker-minutes" data-action="selectMinute"><table class="table-condensed"></table></div>'+(i.options.useSeconds?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"></table></div>':"")},i.destroy=function(){G(),H(),i.widget.remove(),i.element.removeData("DateTimePicker"),i.component&&i.component.removeData("DateTimePicker")},i.show=function(a){if(i.options.useCurrent&&""===k().val()){if(1!==i.options.minuteStepping){var c=b(),d=i.options.minuteStepping;c.minutes(Math.round(c.minutes()/d)*d%60).seconds(0),i.setValue(c.format(i.format))}else i.setValue(b().format(i.format));n("",a.type)}a&&"click"===a.type&&i.isInput&&i.widget.hasClass("picker-open")||(i.widget.hasClass("picker-open")?(i.widget.hide(),i.widget.removeClass("picker-open")):(i.widget.show(),i.widget.addClass("picker-open")),i.height=i.component?i.component.outerHeight():i.element.outerHeight(),m(),i.element.trigger({type:"dp.show",date:b(i.date)}),F(),a&&A(a))},i.disable=function(){var a=i.element.find("input");a.prop("disabled")||(a.prop("disabled",!0),G())},i.enable=function(){var a=i.element.find("input");a.prop("disabled")&&(a.prop("disabled",!1),E())},i.hide=function(){var a,c,d=i.widget.find(".collapse");for(a=0;a<d.length;a++)if(c=d.eq(a).data("collapse"),c&&c.transitioning)return;i.widget.hide(),i.widget.removeClass("picker-open"),i.viewMode=i.startViewMode,D(),i.element.trigger({type:"dp.hide",date:b(i.date)}),H()},i.setValue=function(a){b.locale(i.options.language),a?i.unset=!1:(i.unset=!0,J()),a=b.isMoment(a)?a.locale(i.options.language):a instanceof Date?b(a):b(a,i.format,i.options.useStrict),a.isValid()?(i.date=a,J(),i.viewDate=b({y:i.date.year(),M:i.date.month()}),s(),w()):o(a)},i.getDate=function(){return i.unset?null:b(i.date)},i.setDate=function(a){var c=b(i.date);i.setValue(a?a:null),n(c,"function")},i.setDisabledDates=function(a){i.options.disabledDates=N(a),i.viewDate&&p()},i.setEnabledDates=function(a){i.options.enabledDates=N(a),i.viewDate&&p()},i.setMaxDate=function(a){void 0!==a&&(i.options.maxDate=b.isMoment(a)||a instanceof Date?b(a):b(a,i.format,i.options.useStrict),i.viewDate&&p())},i.setMinDate=function(a){void 0!==a&&(i.options.minDate=b.isMoment(a)||a instanceof Date?b(a):b(a,i.format,i.options.useStrict),i.viewDate&&p())},j()};a.fn.datetimepicker=function(b){return this.each(function(){var c=a(this),e=c.data("DateTimePicker");e||c.data("DateTimePicker",new d(this,b))})},a.fn.datetimepicker.defaults={format:!1,pickDate:!0,pickTime:!0,useMinutes:!0,useSeconds:!1,useCurrent:!0,minuteStepping:1,minDate:b({y:1900}),maxDate:b().add(100,"y"),showToday:!0,collapse:!0,language:b.locale(),defaultDate:"",disabledDates:!1,enabledDates:!1,icons:{},useStrict:!1,direction:"auto",sideBySide:!1,daysOfWeekDisabled:[],widgetParent:!1}});
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * Datetimepicker for Bootstrap v3
3
- //! version : 3.0.2
3
+ //! version : 3.0.3
4
4
  * https://github.com/Eonasdan/bootstrap-datetimepicker/
5
5
  */
6
6
  .bootstrap-datetimepicker-widget {
@@ -156,11 +156,10 @@
156
156
  cursor: not-allowed;
157
157
  }
158
158
  .bootstrap-datetimepicker-widget td span {
159
- display: block;
159
+ display: inline-block;
160
160
  width: 54px;
161
161
  height: 54px;
162
162
  line-height: 54px;
163
- float: left;
164
163
  margin: 2px 1.5px;
165
164
  cursor: pointer;
166
165
  border-radius: 4px;
@@ -187,7 +186,7 @@
187
186
  line-height: 20px;
188
187
  width: 20px;
189
188
  }
190
- .bootstrap-datetimepicker-widget th.switch {
189
+ .bootstrap-datetimepicker-widget th.picker-switch {
191
190
  width: 145px;
192
191
  }
193
192
  .bootstrap-datetimepicker-widget th.next,
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * Datetimepicker for Bootstrap v3
3
- //! version : 3.0.2
3
+ //! version : 3.0.3
4
4
  * https://github.com/Eonasdan/bootstrap-datetimepicker/
5
- */.bootstrap-datetimepicker-widget{top:0;left:0;width:250px;padding:4px;margin-top:1px;z-index:99999!important;border-radius:4px}.bootstrap-datetimepicker-widget.timepicker-sbs{width:600px}.bootstrap-datetimepicker-widget.bottom:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2);position:absolute;top:-7px;left:7px}.bootstrap-datetimepicker-widget.bottom:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:8px}.bootstrap-datetimepicker-widget.top:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #ccc;border-top-color:rgba(0,0,0,.2);position:absolute;bottom:-7px;left:6px}.bootstrap-datetimepicker-widget.top:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff;position:absolute;bottom:-6px;left:7px}.bootstrap-datetimepicker-widget .dow{width:14.2857%}.bootstrap-datetimepicker-widget.pull-right:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.pull-right:after{left:auto;right:7px}.bootstrap-datetimepicker-widget>ul{list-style-type:none;margin:0}.bootstrap-datetimepicker-widget a[data-action]{padding:6px 0}.bootstrap-datetimepicker-widget .timepicker-hour,.bootstrap-datetimepicker-widget .timepicker-minute,.bootstrap-datetimepicker-widget .timepicker-second{width:54px;font-weight:700;font-size:1.2em;margin:0}.bootstrap-datetimepicker-widget button[data-action]{padding:6px}.bootstrap-datetimepicker-widget table[data-hour-format="12"] .separator{width:4px;padding:0;margin:0}.bootstrap-datetimepicker-widget .datepicker>div{display:none}.bootstrap-datetimepicker-widget .picker-switch{text-align:center}.bootstrap-datetimepicker-widget table{width:100%;margin:0}.bootstrap-datetimepicker-widget td,.bootstrap-datetimepicker-widget th{text-align:center;border-radius:4px}.bootstrap-datetimepicker-widget td{height:54px;line-height:54px;width:54px}.bootstrap-datetimepicker-widget td.day{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget td.day:hover,.bootstrap-datetimepicker-widget td.hour:hover,.bootstrap-datetimepicker-widget td.minute:hover,.bootstrap-datetimepicker-widget td.second:hover{background:#eee;cursor:pointer}.bootstrap-datetimepicker-widget td.old,.bootstrap-datetimepicker-widget td.new{color:#777}.bootstrap-datetimepicker-widget td.today{position:relative}.bootstrap-datetimepicker-widget td.today:before{content:'';display:inline-block;border-left:7px solid transparent;border-bottom:7px solid #428bca;border-top-color:rgba(0,0,0,.2);position:absolute;bottom:4px;right:4px}.bootstrap-datetimepicker-widget td.active,.bootstrap-datetimepicker-widget td.active:hover{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.bootstrap-datetimepicker-widget td.active.today:before{border-bottom-color:#fff}.bootstrap-datetimepicker-widget td.disabled,.bootstrap-datetimepicker-widget td.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget td span{display:block;width:54px;height:54px;line-height:54px;float:left;margin:2px 1.5px;cursor:pointer;border-radius:4px}.bootstrap-datetimepicker-widget td span:hover{background:#eee}.bootstrap-datetimepicker-widget td span.active{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.bootstrap-datetimepicker-widget td span.old{color:#777}.bootstrap-datetimepicker-widget td span.disabled,.bootstrap-datetimepicker-widget td span.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget th{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget th.switch{width:145px}.bootstrap-datetimepicker-widget th.next,.bootstrap-datetimepicker-widget th.prev{font-size:21px}.bootstrap-datetimepicker-widget th.disabled,.bootstrap-datetimepicker-widget th.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget thead tr:first-child th{cursor:pointer}.bootstrap-datetimepicker-widget thead tr:first-child th:hover{background:#eee}.input-group.date .input-group-addon span{display:block;cursor:pointer;width:16px;height:16px}.bootstrap-datetimepicker-widget.left-oriented:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.left-oriented:after{left:auto;right:7px}.bootstrap-datetimepicker-widget ul.list-unstyled li div.timepicker div.timepicker-picker table.table-condensed tbody>tr>td{padding:0!important}@media screen and (max-width:767px){.bootstrap-datetimepicker-widget.timepicker-sbs{width:283px}}
5
+ */.bootstrap-datetimepicker-widget{top:0;left:0;width:250px;padding:4px;margin-top:1px;z-index:99999!important;border-radius:4px}.bootstrap-datetimepicker-widget.timepicker-sbs{width:600px}.bootstrap-datetimepicker-widget.bottom:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2);position:absolute;top:-7px;left:7px}.bootstrap-datetimepicker-widget.bottom:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:8px}.bootstrap-datetimepicker-widget.top:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #ccc;border-top-color:rgba(0,0,0,.2);position:absolute;bottom:-7px;left:6px}.bootstrap-datetimepicker-widget.top:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff;position:absolute;bottom:-6px;left:7px}.bootstrap-datetimepicker-widget .dow{width:14.2857%}.bootstrap-datetimepicker-widget.pull-right:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.pull-right:after{left:auto;right:7px}.bootstrap-datetimepicker-widget>ul{list-style-type:none;margin:0}.bootstrap-datetimepicker-widget a[data-action]{padding:6px 0}.bootstrap-datetimepicker-widget .timepicker-hour,.bootstrap-datetimepicker-widget .timepicker-minute,.bootstrap-datetimepicker-widget .timepicker-second{width:54px;font-weight:700;font-size:1.2em;margin:0}.bootstrap-datetimepicker-widget button[data-action]{padding:6px}.bootstrap-datetimepicker-widget table[data-hour-format="12"] .separator{width:4px;padding:0;margin:0}.bootstrap-datetimepicker-widget .datepicker>div{display:none}.bootstrap-datetimepicker-widget .picker-switch{text-align:center}.bootstrap-datetimepicker-widget table{width:100%;margin:0}.bootstrap-datetimepicker-widget td,.bootstrap-datetimepicker-widget th{text-align:center;border-radius:4px}.bootstrap-datetimepicker-widget td{height:54px;line-height:54px;width:54px}.bootstrap-datetimepicker-widget td.day{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget td.day:hover,.bootstrap-datetimepicker-widget td.hour:hover,.bootstrap-datetimepicker-widget td.minute:hover,.bootstrap-datetimepicker-widget td.second:hover{background:#eee;cursor:pointer}.bootstrap-datetimepicker-widget td.old,.bootstrap-datetimepicker-widget td.new{color:#777}.bootstrap-datetimepicker-widget td.today{position:relative}.bootstrap-datetimepicker-widget td.today:before{content:'';display:inline-block;border-left:7px solid transparent;border-bottom:7px solid #428bca;border-top-color:rgba(0,0,0,.2);position:absolute;bottom:4px;right:4px}.bootstrap-datetimepicker-widget td.active,.bootstrap-datetimepicker-widget td.active:hover{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.bootstrap-datetimepicker-widget td.active.today:before{border-bottom-color:#fff}.bootstrap-datetimepicker-widget td.disabled,.bootstrap-datetimepicker-widget td.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget td span{display:inline-block;width:54px;height:54px;line-height:54px;margin:2px 1.5px;cursor:pointer;border-radius:4px}.bootstrap-datetimepicker-widget td span:hover{background:#eee}.bootstrap-datetimepicker-widget td span.active{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.bootstrap-datetimepicker-widget td span.old{color:#777}.bootstrap-datetimepicker-widget td span.disabled,.bootstrap-datetimepicker-widget td span.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget th{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget th.picker-switch{width:145px}.bootstrap-datetimepicker-widget th.next,.bootstrap-datetimepicker-widget th.prev{font-size:21px}.bootstrap-datetimepicker-widget th.disabled,.bootstrap-datetimepicker-widget th.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget thead tr:first-child th{cursor:pointer}.bootstrap-datetimepicker-widget thead tr:first-child th:hover{background:#eee}.input-group.date .input-group-addon span{display:block;cursor:pointer;width:16px;height:16px}.bootstrap-datetimepicker-widget.left-oriented:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.left-oriented:after{left:auto;right:7px}.bootstrap-datetimepicker-widget ul.list-unstyled li div.timepicker div.timepicker-picker table.table-condensed tbody>tr>td{padding:0!important}@media screen and (max-width:767px){.bootstrap-datetimepicker-widget.timepicker-sbs{width:283px}}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap3-datetimepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2.1
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trevor Strieber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-06 00:00:00.000000000 Z
11
+ date: 2014-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler