bootstrap-datepicker-rails 1.1.1.11 → 1.3.0.1.rc5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99299e78e0957b2b87bb99d342fa95a49ef0b2f5
4
- data.tar.gz: 3b9269f54a83b589a6fcf485cb0b3f7ae91a85eb
3
+ metadata.gz: 7679dbe039211388ed5e8184ea70d21aa049c676
4
+ data.tar.gz: 43f442b7dbd990507ad7c7be56258be9a63bd14e
5
5
  SHA512:
6
- metadata.gz: 9ac85d9d6c09fbc265f8897a146fd78fa307943a17b8c17ed52910ef5fbf175e743cd52453691f9d0805a55fb4290765d721909fba182445ec7a4ab39455ed1e
7
- data.tar.gz: ef4c4197fdd1a765a094e29e1773997cf7511edf8b7a88bd7d22c68031f0b10a31c4afdbb8e434e03baa7faebdc1cf68d2a20d2b47433fe2d17cc27233f29938
6
+ metadata.gz: 43154cf425fc7c6ad33e56345582b52e0c41de927275654b4acd81d86eb42f14dfe74c6b94bd516f65a0b7c7f1de78ac06de5003c07f5451b03fea4c4739ad2e
7
+ data.tar.gz: c9a4e25b645900b2932ac75b7f4081386e09f6dd161216e470a9d4564f1f0230df27f7b5179914b6ec8cc1426b1c856f1ff656a31ea16c0050965426707e07f7
data/Rakefile CHANGED
@@ -5,9 +5,10 @@ require 'json'
5
5
  desc "Update assets"
6
6
  task :update do
7
7
  if Dir.exist?('bootstrap-datepicker-src')
8
- system("cd bootstrap-datepicker-src && git pull && cd ..")
8
+ system("cd bootstrap-datepicker-src && git checkout release && git pull && cd ..")
9
9
  else
10
10
  system("git clone git://github.com/eternicode/bootstrap-datepicker.git bootstrap-datepicker-src")
11
+ system("cd bootstrap-datepicker-src && git checkout release && cd ..")
11
12
  end
12
13
  system("cp bootstrap-datepicker-src/css/datepicker.css vendor/assets/stylesheets/bootstrap-datepicker.css")
13
14
  system("cp bootstrap-datepicker-src/js/bootstrap-datepicker.js vendor/assets/javascripts/bootstrap-datepicker/core.js")
@@ -1,5 +1,5 @@
1
1
  module BootstrapDatepickerRails
2
2
  module Rails
3
- VERSION = "1.1.1.11"
3
+ VERSION = "1.3.0.1.rc5"
4
4
  end
5
5
  end
@@ -34,7 +34,7 @@
34
34
  function alias(method){
35
35
  return function(){
36
36
  return this[method].apply(this, arguments);
37
- };
37
+ }
38
38
  }
39
39
 
40
40
  var DateArray = (function(){
@@ -77,7 +77,7 @@
77
77
  a.push.apply(a, arguments);
78
78
  $.extend(a, extras);
79
79
  return a;
80
- };
80
+ }
81
81
  })();
82
82
 
83
83
 
@@ -265,11 +265,11 @@
265
265
  _applyEvents: function(evs){
266
266
  for (var i=0, el, ch, ev; i<evs.length; i++){
267
267
  el = evs[i][0];
268
- if (evs[i].length === 2){
268
+ if (evs[i].length == 2){
269
269
  ch = undefined;
270
270
  ev = evs[i][1];
271
271
  }
272
- else if (evs[i].length === 3){
272
+ else if (evs[i].length == 3){
273
273
  ch = evs[i][1];
274
274
  ev = evs[i][2];
275
275
  }
@@ -279,11 +279,11 @@
279
279
  _unapplyEvents: function(evs){
280
280
  for (var i=0, el, ev, ch; i<evs.length; i++){
281
281
  el = evs[i][0];
282
- if (evs[i].length === 2){
282
+ if (evs[i].length == 2){
283
283
  ch = undefined;
284
284
  ev = evs[i][1];
285
285
  }
286
- else if (evs[i].length === 3){
286
+ else if (evs[i].length == 3){
287
287
  ch = evs[i][1];
288
288
  ev = evs[i][2];
289
289
  }
@@ -310,7 +310,7 @@
310
310
  focus: $.proxy(this.show, this),
311
311
  keyup: $.proxy(function(e){
312
312
  if ($.inArray(e.keyCode, [27,37,39,38,40,32,13,9]) === -1)
313
- this.update();
313
+ this.update()
314
314
  }, this),
315
315
  keydown: $.proxy(this.keydown, this)
316
316
  }],
@@ -393,7 +393,7 @@
393
393
  ix = this.dates.length - 1;
394
394
  format = this.o.format;
395
395
  }
396
- else if (typeof ix === 'string'){
396
+ else if (typeof ix == 'string'){
397
397
  format = ix;
398
398
  ix = this.dates.length - 1;
399
399
  }
@@ -404,10 +404,11 @@
404
404
  });
405
405
  },
406
406
 
407
- show: function(){
407
+ show: function(e) {
408
408
  if (!this.isInline)
409
409
  this.picker.appendTo('body');
410
410
  this.picker.show();
411
+ this.height = this.component ? this.component.outerHeight() : this.element.outerHeight();
411
412
  this.place();
412
413
  this._attachSecondaryEvents();
413
414
  this._trigger('show');
@@ -537,7 +538,7 @@
537
538
  scrollTop = $window.scrollTop();
538
539
 
539
540
  var zIndex = parseInt(this.element.parents().filter(function() {
540
- return $(this).css('z-index') !== 'auto';
541
+ return $(this).css('z-index') != 'auto';
541
542
  }).first().css('z-index'))+10;
542
543
  var offset = this.component ? this.component.parent().offset() : this.element.offset();
543
544
  var height = this.component ? this.component.outerHeight(true) : this.element.outerHeight(false);
@@ -686,18 +687,18 @@
686
687
  year = this.viewDate.getUTCFullYear(),
687
688
  month = this.viewDate.getUTCMonth(),
688
689
  today = new Date();
689
- if (date.getUTCFullYear() < year || (date.getUTCFullYear() === year && date.getUTCMonth() < month)) {
690
+ if (date.getUTCFullYear() < year || (date.getUTCFullYear() == year && date.getUTCMonth() < month)) {
690
691
  cls.push('old');
691
- } else if (date.getUTCFullYear() > year || (date.getUTCFullYear() === year && date.getUTCMonth() > month)) {
692
+ } else if (date.getUTCFullYear() > year || (date.getUTCFullYear() == year && date.getUTCMonth() > month)) {
692
693
  cls.push('new');
693
694
  }
694
695
  if (this.focusDate && date.valueOf() === this.focusDate.valueOf())
695
696
  cls.push('focused');
696
697
  // Compare internal UTC date with local today, not UTC today
697
698
  if (this.o.todayHighlight &&
698
- date.getUTCFullYear() === today.getFullYear() &&
699
- date.getUTCMonth() === today.getMonth() &&
700
- date.getUTCDate() === today.getDate()) {
699
+ date.getUTCFullYear() == today.getFullYear() &&
700
+ date.getUTCMonth() == today.getMonth() &&
701
+ date.getUTCDate() == today.getDate()) {
701
702
  cls.push('today');
702
703
  }
703
704
  if (this.dates.contains(date) !== -1)
@@ -710,7 +711,7 @@
710
711
  if (date > this.range[0] && date < this.range[this.range.length-1]){
711
712
  cls.push('range');
712
713
  }
713
- if ($.inArray(date.valueOf(), this.range) !== -1){
714
+ if ($.inArray(date.valueOf(), this.range) != -1){
714
715
  cls.push('selected');
715
716
  }
716
717
  }
@@ -725,7 +726,7 @@
725
726
  startMonth = this.o.startDate !== -Infinity ? this.o.startDate.getUTCMonth() : -Infinity,
726
727
  endYear = this.o.endDate !== Infinity ? this.o.endDate.getUTCFullYear() : Infinity,
727
728
  endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity,
728
- tooltip;
729
+ tooltip, currentYear;
729
730
  this.picker.find('.datepicker-days thead th.datepicker-switch')
730
731
  .text(dates[this.o.language].months[month]+' '+year);
731
732
  this.picker.find('tfoot th.today')
@@ -746,7 +747,7 @@
746
747
  var html = [];
747
748
  var clsName;
748
749
  while(prevMonth.valueOf() < nextMonth) {
749
- if (prevMonth.getUTCDay() === this.o.weekStart) {
750
+ if (prevMonth.getUTCDay() == this.o.weekStart) {
750
751
  html.push('<tr>');
751
752
  if(this.o.calendarWeeks){
752
753
  // ISO 8601: First week contains first thursday.
@@ -785,7 +786,7 @@
785
786
 
786
787
  clsName = $.unique(clsName);
787
788
  html.push('<td class="'+clsName.join(' ')+'"' + (tooltip ? ' title="'+tooltip+'"' : '') + '>'+prevMonth.getUTCDate() + '</td>');
788
- if (prevMonth.getUTCDay() === this.o.weekEnd) {
789
+ if (prevMonth.getUTCDay() == this.o.weekEnd) {
789
790
  html.push('</tr>');
790
791
  }
791
792
  prevMonth.setUTCDate(prevMonth.getUTCDate()+1);
@@ -799,17 +800,17 @@
799
800
  .find('span').removeClass('active');
800
801
 
801
802
  $.each(this.dates, function(i, d){
802
- if (d.getUTCFullYear() === year)
803
+ if (d.getUTCFullYear() == year)
803
804
  months.eq(d.getUTCMonth()).addClass('active');
804
805
  });
805
806
 
806
807
  if (year < startYear || year > endYear) {
807
808
  months.addClass('disabled');
808
809
  }
809
- if (year === startYear) {
810
+ if (year == startYear) {
810
811
  months.slice(0, startMonth).addClass('disabled');
811
812
  }
812
- if (year === endYear) {
813
+ if (year == endYear) {
813
814
  months.slice(endMonth+1).addClass('disabled');
814
815
  }
815
816
 
@@ -878,7 +879,7 @@
878
879
  e.preventDefault();
879
880
  var target = $(e.target).closest('span, td, th'),
880
881
  year, month, day;
881
- if (target.length === 1) {
882
+ if (target.length == 1) {
882
883
  switch(target[0].nodeName.toLowerCase()) {
883
884
  case 'th':
884
885
  switch(target[0].className) {
@@ -887,7 +888,7 @@
887
888
  break;
888
889
  case 'prev':
889
890
  case 'next':
890
- var dir = DPGlobal.modes[this.viewMode].navStep * (target[0].className === 'prev' ? -1 : 1);
891
+ var dir = DPGlobal.modes[this.viewMode].navStep * (target[0].className == 'prev' ? -1 : 1);
891
892
  switch(this.viewMode){
892
893
  case 0:
893
894
  this.viewDate = this.moveMonth(this.viewDate, dir);
@@ -907,7 +908,7 @@
907
908
  date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
908
909
 
909
910
  this.showMode(-2);
910
- var which = this.o.todayBtn === 'linked' ? null : 'view';
911
+ var which = this.o.todayBtn == 'linked' ? null : 'view';
911
912
  this._setDate(date, which);
912
913
  break;
913
914
  case 'clear':
@@ -964,7 +965,7 @@
964
965
  month -= 1;
965
966
  }
966
967
  } else if (target.is('.new')) {
967
- if (month === 11) {
968
+ if (month == 11) {
968
969
  month = 0;
969
970
  year += 1;
970
971
  } else {
@@ -993,15 +994,15 @@
993
994
  else{
994
995
  this.dates.push(date);
995
996
  }
996
- if (typeof this.o.multidate === 'number')
997
+ if (typeof this.o.multidate == 'number')
997
998
  while (this.dates.length > this.o.multidate)
998
999
  this.dates.remove(0);
999
1000
  },
1000
1001
 
1001
1002
  _setDate: function(date, which){
1002
- if (!which || which === 'date')
1003
+ if (!which || which == 'date')
1003
1004
  this._toggle_multidate(date && new Date(date));
1004
- if (!which || which === 'view')
1005
+ if (!which || which == 'view')
1005
1006
  this.viewDate = date && new Date(date);
1006
1007
 
1007
1008
  this.fill();
@@ -1016,7 +1017,7 @@
1016
1017
  if (element) {
1017
1018
  element.change();
1018
1019
  }
1019
- if (this.o.autoclose && (!which || which === 'date')) {
1020
+ if (this.o.autoclose && (!which || which == 'date')) {
1020
1021
  this.hide();
1021
1022
  }
1022
1023
  },
@@ -1030,14 +1031,14 @@
1030
1031
  mag = Math.abs(dir),
1031
1032
  new_month, test;
1032
1033
  dir = dir > 0 ? 1 : -1;
1033
- if (mag === 1){
1034
- test = dir === -1
1034
+ if (mag == 1){
1035
+ test = dir == -1
1035
1036
  // If going back one month, make sure month is not current month
1036
1037
  // (eg, Mar 31 -> Feb 31 == Feb 28, not Mar 02)
1037
- ? function(){ return new_date.getUTCMonth() === month; }
1038
+ ? function(){ return new_date.getUTCMonth() == month; }
1038
1039
  // If going forward one month, make sure month is as expected
1039
1040
  // (eg, Jan 31 -> Feb 31 == Feb 28, not Mar 02)
1040
- : function(){ return new_date.getUTCMonth() !== new_month; };
1041
+ : function(){ return new_date.getUTCMonth() != new_month; };
1041
1042
  new_month = month + dir;
1042
1043
  new_date.setUTCMonth(new_month);
1043
1044
  // Dec -> Jan (12) or Jan -> Dec (-1) -- limit expected date to 0-11
@@ -1051,7 +1052,7 @@
1051
1052
  // ...then reset the day, keeping it in the new month
1052
1053
  new_month = new_date.getUTCMonth();
1053
1054
  new_date.setUTCDate(day);
1054
- test = function(){ return new_month !== new_date.getUTCMonth(); };
1055
+ test = function(){ return new_month != new_date.getUTCMonth(); };
1055
1056
  }
1056
1057
  // Common date-resetting loop -- if date is beyond end of month, make it
1057
1058
  // end of month
@@ -1072,7 +1073,7 @@
1072
1073
 
1073
1074
  keydown: function(e){
1074
1075
  if (this.picker.is(':not(:visible)')){
1075
- if (e.keyCode === 27) // allow escape to hide and re-show picker
1076
+ if (e.keyCode == 27) // allow escape to hide and re-show picker
1076
1077
  this.show();
1077
1078
  return;
1078
1079
  }
@@ -1093,7 +1094,7 @@
1093
1094
  case 37: // left
1094
1095
  case 39: // right
1095
1096
  if (!this.o.keyboardNavigation) break;
1096
- dir = e.keyCode === 37 ? -1 : 1;
1097
+ dir = e.keyCode == 37 ? -1 : 1;
1097
1098
  if (e.ctrlKey){
1098
1099
  newDate = this.moveYear(this.dates.get(-1) || UTCToday(), dir);
1099
1100
  newViewDate = this.moveYear(focusDate, dir);
@@ -1118,7 +1119,7 @@
1118
1119
  case 38: // up
1119
1120
  case 40: // down
1120
1121
  if (!this.o.keyboardNavigation) break;
1121
- dir = e.keyCode === 38 ? -1 : 1;
1122
+ dir = e.keyCode == 38 ? -1 : 1;
1122
1123
  if (e.ctrlKey){
1123
1124
  newDate = this.moveYear(this.dates.get(-1) || UTCToday(), dir);
1124
1125
  newViewDate = this.moveYear(focusDate, dir);
@@ -1186,11 +1187,17 @@
1186
1187
  if (dir) {
1187
1188
  this.viewMode = Math.max(this.o.minViewMode, Math.min(2, this.viewMode + dir));
1188
1189
  }
1189
- this.picker
1190
- .find('>div')
1191
- .hide()
1192
- .filter('.datepicker-'+DPGlobal.modes[this.viewMode].clsName)
1193
- .css('display', 'block');
1190
+ /*
1191
+ vitalets: fixing bug of very special conditions:
1192
+ jquery 1.7.1 + webkit + show inline datepicker in bootstrap popover.
1193
+ Method show() does not set display css correctly and datepicker is not shown.
1194
+ Changed to .css('display', 'block') solve the problem.
1195
+ See https://github.com/vitalets/x-editable/issues/37
1196
+
1197
+ In jquery 1.7.2+ everything works fine.
1198
+ */
1199
+ //this.picker.find('>div').hide().filter('.datepicker-'+DPGlobal.modes[this.viewMode].clsName).show();
1200
+ this.picker.find('>div').hide().filter('.datepicker-'+DPGlobal.modes[this.viewMode].clsName).css('display', 'block');
1194
1201
  this.updateNavArrows();
1195
1202
  }
1196
1203
  };
@@ -1230,8 +1237,7 @@
1230
1237
  new_date = dp.getUTCDate(),
1231
1238
  i = $.inArray(e.target, this.inputs),
1232
1239
  l = this.inputs.length;
1233
- if (i === -1)
1234
- return;
1240
+ if (i == -1) return;
1235
1241
 
1236
1242
  $.each(this.pickers, function(i, p){
1237
1243
  if (!p.getUTCDate())
@@ -1264,14 +1270,11 @@
1264
1270
  // Derive options from element data-attrs
1265
1271
  var data = $(el).data(),
1266
1272
  out = {}, inkey,
1267
- replace = new RegExp('^' + prefix.toLowerCase() + '([A-Z])');
1268
- prefix = new RegExp('^' + prefix.toLowerCase());
1269
- function re_lower(_,a){
1270
- return a.toLowerCase();
1271
- }
1273
+ replace = new RegExp('^' + prefix.toLowerCase() + '([A-Z])'),
1274
+ prefix = new RegExp('^' + prefix.toLowerCase());
1272
1275
  for (var key in data)
1273
1276
  if (prefix.test(key)){
1274
- inkey = key.replace(replace, re_lower);
1277
+ inkey = key.replace(replace, function(_,a){ return a.toLowerCase(); });
1275
1278
  out[inkey] = data[key];
1276
1279
  }
1277
1280
  return out;
@@ -1303,7 +1306,7 @@
1303
1306
  this.each(function () {
1304
1307
  var $this = $(this),
1305
1308
  data = $this.data('datepicker'),
1306
- options = typeof option === 'object' && option;
1309
+ options = typeof option == 'object' && option;
1307
1310
  if (!data) {
1308
1311
  var elopts = opts_from_el(this, 'date'),
1309
1312
  // Preliminary otions
@@ -1321,7 +1324,7 @@
1321
1324
  $this.data('datepicker', (data = new Datepicker(this, opts)));
1322
1325
  }
1323
1326
  }
1324
- if (typeof option === 'string' && typeof data[option] === 'function') {
1327
+ if (typeof option == 'string' && typeof data[option] == 'function') {
1325
1328
  internal_return = data[option].apply(data, args);
1326
1329
  if (internal_return !== undefined)
1327
1330
  return false;
@@ -1414,12 +1417,12 @@
1414
1417
  if (date instanceof Date) return date;
1415
1418
  if (typeof format === 'string')
1416
1419
  format = DPGlobal.parseFormat(format);
1417
- var part_re = /([\-+]\d+)([dmwy])/,
1418
- parts = date.match(/([\-+]\d+)([dmwy])/g),
1419
- part, dir, i;
1420
1420
  if (/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(date)) {
1421
+ var part_re = /([\-+]\d+)([dmwy])/,
1422
+ parts = date.match(/([\-+]\d+)([dmwy])/g),
1423
+ part, dir;
1421
1424
  date = new Date();
1422
- for (i=0; i<parts.length; i++) {
1425
+ for (var i=0; i<parts.length; i++) {
1423
1426
  part = part_re.exec(parts[i]);
1424
1427
  dir = parseInt(part[1]);
1425
1428
  switch(part[2]){
@@ -1439,9 +1442,9 @@
1439
1442
  }
1440
1443
  return UTCDate(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), 0, 0, 0);
1441
1444
  }
1442
- parts = date && date.match(this.nonpunctuation) || [];
1443
- date = new Date();
1444
- var parsed = {},
1445
+ var parts = date && date.match(this.nonpunctuation) || [],
1446
+ date = new Date(),
1447
+ parsed = {},
1445
1448
  setters_order = ['yyyy', 'yy', 'M', 'MM', 'm', 'mm', 'd', 'dd'],
1446
1449
  setters_map = {
1447
1450
  yyyy: function(d,v){ return d.setUTCFullYear(v); },
@@ -1453,50 +1456,51 @@
1453
1456
  while (v<0) v += 12;
1454
1457
  v %= 12;
1455
1458
  d.setUTCMonth(v);
1456
- while (d.getUTCMonth() !== v)
1459
+ while (d.getUTCMonth() != v)
1457
1460
  d.setUTCDate(d.getUTCDate()-1);
1458
1461
  return d;
1459
1462
  },
1460
1463
  d: function(d,v){ return d.setUTCDate(v); }
1461
1464
  },
1462
- val, filtered;
1465
+ val, filtered, part;
1463
1466
  setters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m'];
1464
1467
  setters_map['dd'] = setters_map['d'];
1465
1468
  date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
1466
1469
  var fparts = format.parts.slice();
1467
1470
  // Remove noop parts
1468
- if (parts.length !== fparts.length) {
1471
+ if (parts.length != fparts.length) {
1469
1472
  fparts = $(fparts).filter(function(i,p){
1470
1473
  return $.inArray(p, setters_order) !== -1;
1471
1474
  }).toArray();
1472
1475
  }
1473
1476
  // Process remainder
1474
- function match_part(){
1475
- var m = this.slice(0, parts[i].length),
1476
- p = parts[i].slice(0, m.length);
1477
- return m === p;
1478
- }
1479
- if (parts.length === fparts.length) {
1480
- var cnt;
1481
- for (i=0, cnt = fparts.length; i < cnt; i++) {
1477
+ if (parts.length == fparts.length) {
1478
+ for (var i=0, cnt = fparts.length; i < cnt; i++) {
1482
1479
  val = parseInt(parts[i], 10);
1483
1480
  part = fparts[i];
1484
1481
  if (isNaN(val)) {
1485
1482
  switch(part) {
1486
1483
  case 'MM':
1487
- filtered = $(dates[language].months).filter(match_part);
1484
+ filtered = $(dates[language].months).filter(function(){
1485
+ var m = this.slice(0, parts[i].length),
1486
+ p = parts[i].slice(0, m.length);
1487
+ return m == p;
1488
+ });
1488
1489
  val = $.inArray(filtered[0], dates[language].months) + 1;
1489
1490
  break;
1490
1491
  case 'M':
1491
- filtered = $(dates[language].monthsShort).filter(match_part);
1492
+ filtered = $(dates[language].monthsShort).filter(function(){
1493
+ var m = this.slice(0, parts[i].length),
1494
+ p = parts[i].slice(0, m.length);
1495
+ return m == p;
1496
+ });
1492
1497
  val = $.inArray(filtered[0], dates[language].monthsShort) + 1;
1493
1498
  break;
1494
1499
  }
1495
1500
  }
1496
1501
  parsed[part] = val;
1497
1502
  }
1498
- var _date, s;
1499
- for (i=0; i<setters_order.length; i++){
1503
+ for (var i=0, _date, s; i<setters_order.length; i++){
1500
1504
  s = setters_order[i];
1501
1505
  if (s in parsed && !isNaN(parsed[s])){
1502
1506
  _date = new Date(date);
@@ -1525,8 +1529,8 @@
1525
1529
  };
1526
1530
  val.dd = (val.d < 10 ? '0' : '') + val.d;
1527
1531
  val.mm = (val.m < 10 ? '0' : '') + val.m;
1528
- date = [];
1529
- var seps = $.extend([], format.separators);
1532
+ var date = [],
1533
+ seps = $.extend([], format.separators);
1530
1534
  for (var i=0, cnt = format.parts.length; i <= cnt; i++) {
1531
1535
  if (seps.length)
1532
1536
  date.push(seps.shift());
@@ -1542,14 +1546,7 @@
1542
1546
  '</tr>'+
1543
1547
  '</thead>',
1544
1548
  contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>',
1545
- footTemplate: '<tfoot>'+
1546
- '<tr>'+
1547
- '<th colspan="7" class="today"></th>'+
1548
- '</tr>'+
1549
- '<tr>'+
1550
- '<th colspan="7" class="clear"></th>'+
1551
- '</tr>'+
1552
- '</tfoot>'
1549
+ footTemplate: '<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'
1553
1550
  };
1554
1551
  DPGlobal.template = '<div class="datepicker">'+
1555
1552
  '<div class="datepicker-days">'+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-datepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.11
4
+ version: 1.3.0.1.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Rodríguez-Baltanás Díaz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-18 00:00:00.000000000 Z
11
+ date: 2014-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -166,9 +166,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  requirements:
169
- - - '>='
169
+ - - '>'
170
170
  - !ruby/object:Gem::Version
171
- version: '0'
171
+ version: 1.3.1
172
172
  requirements: []
173
173
  rubyforge_project:
174
174
  rubygems_version: 2.0.3