The jQuery plugin provides options for expandEffect, collapseEffect, expandSpeed, and collapseSpeed. These should be exposed as options because slideUp and slideDown are not always the best combo.

Comments

mavame’s picture

Status: Needs work » Needs review
StatusFileSize
new2.08 KB

Proposed patch attached.

mavame’s picture

Fixed issue with previous patch (typo).

mavame’s picture

Fixing issue with previous patch (not good).

mradcliffe’s picture

This looks great. I would say works for me and RTBC.

One minor suggestion to improve the description:

+++ b/jquery_expander.module
@@ -79,6 +83,34 @@ function jquery_expander_field_formatter_settings_form($field, $instance, $view_
+    '#description' => t('Can be slideDown, show, fadeIn, etc.'),

"You may use a valid jQuery effect such as slideDown, show, fadeIn, etc..."