Commits

Anonymous committed 7b47550

[svn] Hopefully final patch against parallel_effects, future proof goodness.

  • Participants
  • Parent commits 275fd53

Comments (0)

Files changed (1)

webhelpers/rails/scriptaculous.py

             visual_effect('fade', 'dom_id'),
         )
     """
-    str_effects = [e[:-1] for e in effects] # Remove trailing ';'
+    str_effects = [e[:e.rindex(';')] for e in effects] # Remove trailing ';'
     return "new Effect.Parallel([%s], %s)" % (','.join(str_effects), options_for_javascript(js_options))
 
 def sortable_element(element_id, **options):