input_calendar 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/src/calendar.coffee
CHANGED
@@ -99,7 +99,7 @@ class @Calendar
|
|
99
99
|
classes.push("othermonth") if date.getMonth() != month
|
100
100
|
classes.push("today") if date.same_as(new Date())
|
101
101
|
classes.push("selected") if date.same_as(@date)
|
102
|
-
"<td class='#{classes.join(" ")}'><a data-date='#{date.
|
102
|
+
"<td class='#{classes.join(" ")}'><a data-date='#{date.toDateString()}' href='#'>#{date.getDate()}</a></td>"
|
103
103
|
|
104
104
|
clicked: (event) ->
|
105
105
|
o=$(event.target)
|
@@ -166,7 +166,7 @@
|
|
166
166
|
if (date.getMonth() !== month) classes.push("othermonth");
|
167
167
|
if (date.same_as(new Date())) classes.push("today");
|
168
168
|
if (date.same_as(this.date)) classes.push("selected");
|
169
|
-
return "<td class='" + (classes.join(" ")) + "'><a data-date='" + (date.
|
169
|
+
return "<td class='" + (classes.join(" ")) + "'><a data-date='" + (date.toDateString()) + "' href='#'>" + (date.getDate()) + "</a></td>";
|
170
170
|
};
|
171
171
|
|
172
172
|
Calendar.prototype.clicked = function(event) {
|
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: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
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-05-
|
18
|
+
date: 2012-05-24 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Simple and clean JS calendar to enter dates on forms
|