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 +4 -4
- data/README.md +1 -0
- data/lib/jquery-timepicker-rails/version.rb +1 -1
- data/vendor/assets/javascripts/jquery.timepicker.js +10 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45718952790f6cd76d6c394f4d97163710f83281
|
4
|
+
data.tar.gz: 93e2971f8062d9bd1a20ed023971860adc567368
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,5 +1,5 @@
|
|
1
1
|
/************************
|
2
|
-
jquery-timepicker v1.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
|
-
|
248
|
-
|
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.
|
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-
|
12
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|