Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3323 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] Effect.Toggle helper for rails

Reported by: rails@advany.com Assigned to: thomas@fesch.at
Priority: normal Milestone: 1.1
Component: ActionPack Version: 1.0.0
Severity: minor Keywords:
Cc:

Description

Hi,

I just made a small effect.toggle helper for rails (included in the latest svn distribution of scriptaculous. Tests included...

NOTE: For it to work, you need to update the latest scriptaculous svn distribution...

Attachments

effect.toggle.helper.patch (2.2 kB) - added by rails@advany.com on 12/23/05 15:58:17.
diff patch
visual_effect_with_toggle.diff (1.9 kB) - added by jonathan@bluewire.net.nz on 12/25/05 03:54:48.

Change History

12/23/05 15:58:17 changed by rails@advany.com

  • attachment effect.toggle.helper.patch added.

diff patch

12/23/05 16:00:51 changed by anonymous

  • type changed from defect to enhancement.

12/24/05 22:59:59 changed by david

  • owner changed from David to thomas@fesch.at.

12/25/05 03:54:11 changed by jonathan@bluewire.net.nz

It may be better to add this ability to the visual_effect helper, rather than creating a new method. So you can do:

visual_effect :toggle, 'my_element_id', :effect => :slide

I've attached a patch for visual_effect.

12/25/05 03:54:48 changed by jonathan@bluewire.net.nz

  • attachment visual_effect_with_toggle.diff added.

12/25/05 18:53:46 changed by madrobby

  • status changed from new to closed.
  • resolution set to fixed.

Added a variant of this in [3350].