mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 01:00:13 +01:00
remove old flash rjs helper. This is replaced by pageNotify javascript function in application.js
This commit is contained in:
parent
641c27d753
commit
ee4ef4ad42
1 changed files with 0 additions and 9 deletions
|
|
@ -131,15 +131,6 @@ module ApplicationHelper
|
||||||
render :partial => 'shared/flash', :locals => { :flash => flash }
|
render :partial => 'shared/flash', :locals => { :flash => flash }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Display a flash message in RJS templates Usage: page.notify :warning, "This
|
|
||||||
# is the message", 5.0 Puts the message into a flash of type 'warning', fades
|
|
||||||
# over 5 secs
|
|
||||||
def notify(type, message, fade_duration)
|
|
||||||
type = type.to_s # symbol to string
|
|
||||||
page.replace 'flash', "<h4 id='flash' class='alert #{type}'>#{message}</h4>"
|
|
||||||
page.visual_effect :fade, 'flash', :duration => fade_duration
|
|
||||||
end
|
|
||||||
|
|
||||||
def recurrence_time_span(rt)
|
def recurrence_time_span(rt)
|
||||||
case rt.ends_on
|
case rt.ends_on
|
||||||
when "no_end_date"
|
when "no_end_date"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue