Skip to content

Commit

Permalink
Undid changes by David Reese on 12/18/2009. (Version 0b92ecf)
Browse files Browse the repository at this point in the history
  • Loading branch information
shihgianlee committed Mar 14, 2010
1 parent 9cfde39 commit 432e0ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/calendar_date_select/form_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ def calendar_date_select_output(input, image, options = {}, javascript_options =
uniq_id = "cds_placeholder_#{(rand*100000).to_i}"
# we need to be able to locate the target input element, so lets stick an invisible span tag here we can easily locate
out << content_tag(:span, nil, :style => "display: none; position: absolute;", :id => uniq_id)
out << javascript_tag("new CalendarDateSelect( $('#{uniq_id}').previous('input'), #{options_for_javascript(javascript_options)} ); ")
out << javascript_tag("new CalendarDateSelect( $('#{uniq_id}').previous(), #{options_for_javascript(javascript_options)} ); ")
else
out << " "
out << image_tag(image,
:onclick => "new CalendarDateSelect( $(this).previous('input'), #{options_for_javascript(javascript_options)} );",
:onclick => "new CalendarDateSelect( $(this).previous(), #{options_for_javascript(javascript_options)} );",
:style => 'border:0px; cursor:pointer;',
:class=>'calendar_date_select_popup_icon')
end
Expand Down

0 comments on commit 432e0ea

Please sign in to comment.