Changeset 5729


Ignore:
Timestamp:
Apr 9, 2010, 12:51:38 AM (14 years ago)
Author:
patdenice
Message:

Feature 1557: slower animation on plugin description box.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/plugins_new.tpl

    r5695 r5729  
    77  jQuery("td[id^='desc_']").click(function() {ldelim}
    88    id = this.id.split('_');
     9    nb_lines = jQuery("#bigdesc_"+id[1]).html().split('<br>').length;
     10
     11    $("#smalldesc_"+id[1]).toggle('blind', 1);
    912    if ($(this).hasClass('bigdesc')) {ldelim}
    1013      $("#bigdesc_"+id[1]).toggle('blind', 1);
    1114      $(this).removeClass('bigdesc');
    1215    } else {ldelim}
    13       $("#bigdesc_"+id[1]).toggle('blind', 50);
     16      $("#bigdesc_"+id[1]).toggle('blind', 50 + (nb_lines * 30));
    1417      $(this).addClass('bigdesc');
    1518    }
    16     $("#smalldesc_"+id[1]).toggle('blind', 1);
    1719    return false;
    1820  });
     
    3537<legend></legend>
    3638{foreach from=$plugins item=plugin name=plugins_loop}
    37 <div class="pluginBox" id="plugin_{$plugin.ID}"}>
     39<div class="pluginBox" id="plugin_{$plugin.ID}">
    3840  <table>
    3941    <tr>
Note: See TracChangeset for help on using the changeset viewer.