Even boundles with D5 JQuery 1.0.1 mase some nice fade effects easier.

Comments

a.a.egoroff’s picture

oops... "...1.0.1 makes some..."

kourge’s picture

Can you elaborate more?

kourge’s picture

Status: Active » Postponed (maintainer needs more info)
a.a.egoroff’s picture

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;
}

Sending this values in js...

    drupal_add_js(array('tabs' => array('slide' => (bool) variable_get('tabs_slide', 0), 'fade' => (bool) variable_get('tabs_fade', 0), 'speed' => variable_get('tabs_speed', 'slow'), 'auto_height' => (bool) variable_get('tabs_auto_height', 0))), 'setting');

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.

kourge’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

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.

a.a.egoroff’s picture

Oh, yes. I've just noticed this... Sorry and thanks:)