@@ -12,9 +12,11 module CalendarsHelper | |||||
12 | "#{month_name(target_month)}" |
|
12 | "#{month_name(target_month)}" | |
13 | end |
|
13 | end | |
14 |
|
14 | |||
15 | link_to_remote ('« ' + name), |
|
15 | link_target = calendar_path(:year => target_year, :month => target_month) | |
16 | {:update => "content", :url => { :year => target_year, :month => target_month }}, |
|
16 | ||
17 | {:href => url_for(:action => 'show', :year => target_year, :month => target_month)} |
|
17 | link_to_remote(('« ' + name), | |
|
18 | {:update => "content", :url => link_target, :method => :put}, | |||
|
19 | {:href => link_target}) | |||
18 | end |
|
20 | end | |
19 |
|
21 | |||
20 | def link_to_next_month(year, month) |
|
22 | def link_to_next_month(year, month) | |
@@ -30,9 +32,11 module CalendarsHelper | |||||
30 | "#{month_name(target_month)}" |
|
32 | "#{month_name(target_month)}" | |
31 | end |
|
33 | end | |
32 |
|
34 | |||
33 | link_to_remote (name + ' »'), |
|
35 | link_target = calendar_path(:year => target_year, :month => target_month) | |
34 | {:update => "content", :url => { :year => target_year, :month => target_month }}, |
|
36 | ||
35 | {:href => url_for(:action => 'show', :year => target_year, :month =>target_month)} |
|
37 | link_to_remote((name + ' »'), | |
|
38 | {:update => "content", :url => link_target, :method => :put}, | |||
|
39 | {:href => link_target}) | |||
36 |
|
40 | |||
37 | end |
|
41 | end | |
38 | end |
|
42 | end |
General Comments 0
You need to be logged in to leave comments.
Login now