jquery_datepicker 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/jquery_datepicker.gemspec +1 -1
- data/lib/app/helpers/form_helper.rb +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rake'
|
|
3
3
|
require 'echoe'
|
4
4
|
require 'rspec/core/rake_task'
|
5
5
|
|
6
|
-
Echoe.new('jquery_datepicker', '0.3.
|
6
|
+
Echoe.new('jquery_datepicker', '0.3.4') do |p|
|
7
7
|
p.description = "View helper that allows to select dates from a calendar (using jQuery Ui plugin)"
|
8
8
|
p.url = "http://github.com/albertopq/jquery_datepicker"
|
9
9
|
p.author = "Alberto Pastor"
|
data/jquery_datepicker.gemspec
CHANGED
@@ -9,7 +9,7 @@ module JqueryDatepicker
|
|
9
9
|
def datepicker(object_name, method, options = {})
|
10
10
|
input_tag = JqueryDatepicker::InstanceTag.new(object_name, method, self, options.delete(:object))
|
11
11
|
dp_options, tf_options = input_tag.split_options(options)
|
12
|
-
tf_options[:value] = input_tag.format_date(tf_options[:value], String.new(dp_options[:dateFormat])) if tf_options
|
12
|
+
tf_options[:value] = input_tag.format_date(tf_options[:value], String.new(dp_options[:dateFormat])) if tf_options[:value] && !tf_options[:value].empty? && dp_options.has_key?(:dateFormat)
|
13
13
|
html = input_tag.to_input_field_tag("text", tf_options)
|
14
14
|
html += javascript_tag("jQuery(document).ready(function(){jQuery('##{input_tag.get_name_and_id["id"]}').datepicker(#{dp_options.to_json})});")
|
15
15
|
html.html_safe
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery_datepicker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
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: 2011-11-07 00:00:00.
|
12
|
+
date: 2011-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: View helper that allows to select dates from a calendar (using jQuery
|
15
15
|
Ui plugin)
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
version: '1.2'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project: jquery_datepicker
|
58
|
-
rubygems_version: 1.8.
|
58
|
+
rubygems_version: 1.8.16
|
59
59
|
signing_key:
|
60
60
|
specification_version: 3
|
61
61
|
summary: View helper that allows to select dates from a calendar (using jQuery Ui
|