Commits

Anonymous committed 275fd53

[svn] Fixed parallel_effects to call effects properly, reported by Tiago Alves.

  • Participants
  • Parent commits 8cb4f0a

Comments (0)

Files changed (1)

File webhelpers/rails/scriptaculous.py

             visual_effect('fade', 'dom_id'),
         )
     """
-    return "new Effect.Parallel([%s], %s)" % (effects.join(''), options_for_javascript(js_options))
+    str_effects = [e[:-1] 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):
     """