input_calendar 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
data/src/calendar.coffee
CHANGED
@@ -169,6 +169,8 @@ class DateHelper
|
|
169
169
|
@getMonth() == date.getMonth() &&
|
170
170
|
@getDate() == date.getDate()
|
171
171
|
@go_tomorrow = ->
|
172
|
-
|
172
|
+
day = @getDate()+1
|
173
|
+
@setDate day
|
173
174
|
@go_yesterday = ->
|
174
|
-
|
175
|
+
day = @getDate()-1
|
176
|
+
@setDate day
|
@@ -276,11 +276,15 @@
|
|
276
276
|
};
|
277
277
|
|
278
278
|
DateHelper.go_tomorrow = function() {
|
279
|
-
|
279
|
+
var day;
|
280
|
+
day = this.getDate() + 1;
|
281
|
+
return this.setDate(day);
|
280
282
|
};
|
281
283
|
|
282
284
|
DateHelper.go_yesterday = function() {
|
283
|
-
|
285
|
+
var day;
|
286
|
+
day = this.getDate() - 1;
|
287
|
+
return this.setDate(day);
|
284
288
|
};
|
285
289
|
|
286
290
|
return DateHelper;
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: input_calendar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Goebel
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-09-04 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Simple and clean JS calendar to enter dates on forms
|