From ee4ef4ad42831a151e4291979aa2c556c8586d73 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Wed, 6 Oct 2010 20:40:51 +0200 Subject: [PATCH] remove old flash rjs helper. This is replaced by pageNotify javascript function in application.js --- app/helpers/application_helper.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a6b51172..8ab0f8f6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -130,15 +130,6 @@ module ApplicationHelper def render_flash render :partial => 'shared/flash', :locals => { :flash => flash } 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', "

#{message}

" - page.visual_effect :fade, 'flash', :duration => fade_duration - end def recurrence_time_span(rt) case rt.ends_on