bootstrap-datepicker-rails 1.0.0.3 → 1.0.0.4

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: 130087eee463e56eead64c0a83e939ec04a49db1
4
- data.tar.gz: 787985d85b851d3ddb512f72c85ed4e070099aeb
3
+ metadata.gz: 4f53b412ccc47abdc41144ff0574a9c40156089f
4
+ data.tar.gz: 7f00d20485ee4ecacdf36e365806e9dbe3a240e3
5
5
  SHA512:
6
- metadata.gz: 4042e4dba319189c8f6170e3235adfe0e57ba6bbedc84c2fcbeaf52ecf8eaca103a1a5f870aadbe937777b2a38532fd3dfe842c80a35d0ec98249dd2056191c4
7
- data.tar.gz: a26f9ff1f29ad4eeb86a6de27a05d6a33fc691923c042c69c2a34469c9012b3021741c94a1850485be48e530b37033151337855de166786eb9009a19be6b168b
6
+ metadata.gz: 750051e8f825ebe9fbb92f6273d504decd92aa36ac4cd5e0e5e15873e859cf6939de192e7d6533dda77decd7d7a90387f61b91c141050d727020ddb41f9381dc
7
+ data.tar.gz: 4b245b6c1f58f08b662e518c0d842a0a84655ac3285f0e4af63d31ace1d7fa03ffb8a1ce3ef93f2a6e5c7a602101601998dc40c26267f35cf15e99a164b97ebd
@@ -1,5 +1,5 @@
1
1
  module BootstrapDatepickerRails
2
2
  module Rails
3
- VERSION = "1.0.0.3"
3
+ VERSION = "1.0.0.4"
4
4
  end
5
5
  end
@@ -308,7 +308,6 @@
308
308
  if (this.component){
309
309
  this.element.find('input').val(formatted);
310
310
  }
311
- this.element.data('date', formatted);
312
311
  } else {
313
312
  this.element.val(formatted);
314
313
  }
@@ -374,6 +373,7 @@
374
373
  fromArgs = true;
375
374
  } else {
376
375
  date = this.isInput ? this.element.val() : this.element.data('date') || this.element.find('input').val();
376
+ delete this.element.data().date;
377
377
  }
378
378
 
379
379
  this.date = DPGlobal.parseDate(date, this.format, this.language);
@@ -467,7 +467,7 @@
467
467
  endYear = this.endDate !== Infinity ? this.endDate.getUTCFullYear() : Infinity,
468
468
  endMonth = this.endDate !== Infinity ? this.endDate.getUTCMonth() : Infinity,
469
469
  currentDate = this.date && this.date.valueOf();
470
- this.picker.find('.datepicker-days thead th.switch')
470
+ this.picker.find('.datepicker-days thead th.datepicker-switch')
471
471
  .text(dates[this.language].months[month]+' '+year);
472
472
  this.picker.find('tfoot th.today')
473
473
  .text(dates[this.language].today)
@@ -588,7 +588,7 @@
588
588
  switch(target[0].nodeName.toLowerCase()) {
589
589
  case 'th':
590
590
  switch(target[0].className) {
591
- case 'switch':
591
+ case 'datepicker-switch':
592
592
  this.showMode(1);
593
593
  break;
594
594
  case 'prev':
@@ -1095,7 +1095,7 @@
1095
1095
  headTemplate: '<thead>'+
1096
1096
  '<tr>'+
1097
1097
  '<th class="prev"><i class="icon-arrow-left"/></th>'+
1098
- '<th colspan="5" class="switch"></th>'+
1098
+ '<th colspan="5" class="datepicker-switch"></th>'+
1099
1099
  '<th class="next"><i class="icon-arrow-right"/></th>'+
1100
1100
  '</tr>'+
1101
1101
  '</thead>',
@@ -383,7 +383,7 @@
383
383
  .datepicker table tr td span.old {
384
384
  color: #999999;
385
385
  }
386
- .datepicker th.switch {
386
+ .datepicker th.datepicker-switch {
387
387
  width: 145px;
388
388
  }
389
389
  .datepicker thead tr:first-child th,
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.0.0.3
4
+ version: 1.0.0.4
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-04-05 00:00:00.000000000 Z
11
+ date: 2013-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  version: '0'
185
185
  requirements: []
186
186
  rubyforge_project:
187
- rubygems_version: 2.0.2
187
+ rubygems_version: 2.0.3
188
188
  signing_key:
189
189
  specification_version: 4
190
190
  summary: A date picker for Twitter Bootstrap