atd-calendar_date_select 1.11.20090108 → 1.11.20090109
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ module CalendarDateSelect::IncludesHelper
|
|
7
7
|
|
8
8
|
# returns an array of javascripts needed for the selected locale, date_format, and calendar control itself.
|
9
9
|
def calendar_date_select_javascripts(options = {})
|
10
|
-
options.assert_valid_keys(:
|
10
|
+
options.assert_valid_keys(:locale)
|
11
11
|
files = ["calendar_date_select/calendar_date_select"]
|
12
12
|
files << "calendar_date_select/locale/#{options[:locale]}" if options[:locale]
|
13
13
|
files << "calendar_date_select/#{CalendarDateSelect.format[:javascript_include]}" if CalendarDateSelect.format[:javascript_include]
|
@@ -20,10 +20,10 @@ module CalendarDateSelect::IncludesHelper
|
|
20
20
|
@cds_already_included=true
|
21
21
|
|
22
22
|
options = (Hash === args.last) ? args.pop : {}
|
23
|
-
options.assert_valid_keys(:style, :
|
23
|
+
options.assert_valid_keys(:style, :locale)
|
24
24
|
options[:style] ||= args.shift
|
25
25
|
|
26
|
-
javascript_include_tag(*calendar_date_select_javascripts(:locale => options[:locale]
|
26
|
+
javascript_include_tag(*calendar_date_select_javascripts(:locale => options[:locale])) + "\n" +
|
27
27
|
stylesheet_link_tag(*calendar_date_select_stylesheets(:style => options[:style])) + "\n"
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atd-calendar_date_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.20090109
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Harper
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-01-
|
12
|
+
date: 2009-01-09 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|