jquery-timepicker-rails 1.2.2.0 → 1.2.4.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
|
|
1
1
|
/************************
|
2
|
-
jquery-timepicker v1.2.
|
2
|
+
jquery-timepicker v1.2.4
|
3
3
|
http://jonthornton.github.com/jquery-timepicker/
|
4
4
|
|
5
5
|
requires jQuery 1.7+
|
@@ -208,19 +208,26 @@ requires jQuery 1.7+
|
|
208
208
|
return _time2int(_getTimeValue(this));
|
209
209
|
},
|
210
210
|
|
211
|
-
getTime: function()
|
211
|
+
getTime: function(relative_date)
|
212
212
|
{
|
213
213
|
var self = this;
|
214
|
-
|
215
|
-
|
216
|
-
|
214
|
+
if (!relative_date) {
|
215
|
+
relative_date = new Date();
|
216
|
+
}
|
217
|
+
|
218
|
+
relative_date.setHours(0, 0, 0, 0);
|
219
|
+
return new Date(relative_date.valueOf() + (_time2int(_getTimeValue(self))*1000));
|
217
220
|
},
|
218
221
|
|
219
222
|
setTime: function(value)
|
220
223
|
{
|
221
224
|
var self = this;
|
222
225
|
var prettyTime = _int2time(_time2int(value), self.data('timepicker-settings').timeFormat);
|
226
|
+
|
223
227
|
_setTimeValue(self, prettyTime);
|
228
|
+
if (self.data('timepicker-list')) {
|
229
|
+
_setSelected(self, self.data('timepicker-list'));
|
230
|
+
}
|
224
231
|
},
|
225
232
|
|
226
233
|
remove: function()
|
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.2.
|
4
|
+
version: 1.2.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|