jquery-timepicker-rails 1.3.3 → 1.3.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: 05a01eddbe0f274448f77ffaa36ada2bc2f75b00
4
- data.tar.gz: d52cfce42dfa37d144f673fb90d54c468b870926
3
+ metadata.gz: 45718952790f6cd76d6c394f4d97163710f83281
4
+ data.tar.gz: 93e2971f8062d9bd1a20ed023971860adc567368
5
5
  SHA512:
6
- metadata.gz: d8021357d8803771eaec9cddb5e42685ba8f340166b0bc7c9c2d0a84b4ac00fca0e2c383b770575b70fa47bd7167dd238a7a152d5a31c233867ef8037ca3920a
7
- data.tar.gz: cb87077aac414733be31d7d900de65f2a7819198ecc0e50bcfdc41f52a6163a72a897677b70a8b9b036e9c1b8c08f1a5ea981bb98496725525d211834760b1cb
6
+ metadata.gz: 61017dad9c1c2bd5b8658a3491fbbf664535f44662dd5f90e57edec154c0f3aff542f15affb3e5621d2263b571a433c4d3cdbeb884201cb05d3f7909edaf6ed9
7
+ data.tar.gz: 6875ae7462327372bdce4d30143e2b98d8e344214946e2267df75c631e789eae4b6f2b1a84dbe2825f94f2a222ddda5d5792f1480d24d8d9c85e866943298342
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # jQuery timepicker for Rails
2
+ [![Gem Version](https://badge.fury.io/rb/jquery-timepicker-rails.png)](http://badge.fury.io/rb/jquery-timepicker-rails)
2
3
 
3
4
  jquery-timepicker packaged for the Rails 3.1+ asset pipeline.
4
5
  Check [jquery-timepicker project home page](http://github.com/jonthornton/jquery-timepicker).
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Timepicker
3
3
  module Rails
4
- VERSION = "1.3.3"
4
+ VERSION = "1.3.4"
5
5
  end
6
6
  end
7
7
  end
@@ -1,5 +1,5 @@
1
1
  /************************
2
- jquery-timepicker v1.3.3
2
+ jquery-timepicker v1.3.4
3
3
  http://jonthornton.github.com/jquery-timepicker/
4
4
 
5
5
  requires jQuery 1.7+
@@ -243,9 +243,16 @@ requires jQuery 1.7+
243
243
  if (!relative_date) {
244
244
  relative_date = new Date();
245
245
  }
246
+ var offset = _time2int(time_string);
246
247
 
247
- relative_date.setHours(0, 0, 0, 0);
248
- return new Date(relative_date.valueOf() + (_time2int(time_string)*1000));
248
+ // construct a Date with today's date, and offset's time
249
+ var time = new Date(relative_date);
250
+ time.setHours(offset / 3600);
251
+ time.setMinutes(offset % 3600 / 60);
252
+ time.setSeconds(offset % 60);
253
+ time.setMilliseconds(0);
254
+
255
+ return time;
249
256
  },
250
257
 
251
258
  setTime: function(value)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-timepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanguy Krotoff (jQuery plugin by Jon Thornton)
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-16 00:00:00.000000000 Z
12
+ date: 2014-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties