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