Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Now search results appear like a flash, instantly (".show()|hide()" jQuery methods). Is it possible too add option to choose effect type (for example "fadeIn() and fadeOut()") and duration to make rise smoothly? There is same function in tabs.module:
Admin setteing to set effect type.
function tabs_admin_settings() {
$form = array();
$form['tabs_slide'] = array(
'#type' => 'radios',
'#title' => t('Slide effect'),
'#description' => t('Apply slide effect when changing tabs.'),
'#default_value' => variable_get('tabs_slide', 0),
'#options' => array(t('disabled'), t('enabled')),
);
$form['tabs_fade'] = array(
'#type' => 'radios',
'#title' => t('Fade effect'),
'#description' => t('Apply fade effect when changing tabs.'),
'#default_value' => variable_get('tabs_fade', 0),
'#options' => array(t('disabled'), t('enabled')),
);
$form['tabs_speed'] = array(
'#type' => 'radios',
'#title' => t('Effect speed'),
'#description' => t('Speed at which to apply effects.'),
'#default_value' => variable_get('tabs_speed', 'slow'),
'#options' => array('slow' => t('slow'), 'fast' => t('fast')),
);
$form['tabs_auto_height'] = array(
'#type' => 'radios',
'#title' => t('Fixed height'),
'#description' => t('Set all tabs to have the height of the tallest tab. If not enabled, content will adjust to fit when tabs are changed. Note: fixed height is not fully compatible with slide and fade effects.'),
'#default_value' => variable_get('tabs_auto_height', 0),
'#options' => array(t('disabled'), t('enabled')),
);
$form = system_settings_form($form);
return $form;
}
The module is really very good itself, but develops very slowly. If it is noncritical, I can embody the given functions.... But it will be at a distant day. If so, can you help me with future testing and bugfixing? Therefore as I am not so strong in programming.
I've personally tried to incorporate jQuery effects into Live Search and they generally do not produce good results no matter what theme you're using, be it Garland or Zen. So I've decided that I'll leave it to the users to modify the JavaScript file.
Comments
Comment #1
a.a.egoroff commentedoops... "...1.0.1 makes some..."
Comment #2
kourge commentedCan you elaborate more?
Comment #3
kourge commentedComment #4
a.a.egoroff commentedNow search results appear like a flash, instantly (".show()|hide()" jQuery methods). Is it possible too add option to choose effect type (for example "fadeIn() and fadeOut()") and duration to make rise smoothly? There is same function in tabs.module:
Admin setteing to set effect type.
Sending this values in js...
The module is really very good itself, but develops very slowly. If it is noncritical, I can embody the given functions.... But it will be at a distant day. If so, can you help me with future testing and bugfixing? Therefore as I am not so strong in programming.
Comment #5
kourge commentedI've personally tried to incorporate jQuery effects into Live Search and they generally do not produce good results no matter what theme you're using, be it Garland or Zen. So I've decided that I'll leave it to the users to modify the JavaScript file.
Comment #6
a.a.egoroff commentedOh, yes. I've just noticed this... Sorry and thanks:)