2014-08-29, 06:37 PM
Hello.
Mybb 1.8 have bug with collapse item.
Why ?
Because template like a forumbit for make forums are buged on IE11, but work better from Chrome.
See at reference http://api.jquery.com/toggle/
On chrome i have only fade effect, but where is animation on fade this item ?
Normally I cannot change jquery effect like .slideToggle because construction of table don't accept it on Chrome, but accept on IE11.
Here is example template for forumbit to better work this effect, or any other jQuery effect like slideToggle, or fade
Sorry for lame code, but it was maked fast.
Mybb 1.8 have bug with collapse item.
Why ?
Because template like a forumbit for make forums are buged on IE11, but work better from Chrome.
expandedItem.toggle("fast");
Hmmm.... this section collapse in general.js put height: into <tbody> lolSee at reference http://api.jquery.com/toggle/
On chrome i have only fade effect, but where is animation on fade this item ?
Normally I cannot change jquery effect like .slideToggle because construction of table don't accept it on Chrome, but accept on IE11.
Here is example template for forumbit to better work this effect, or any other jQuery effect like slideToggle, or fade
Sorry for lame code, but it was maked fast.
<table border="0" cellspacing="0" cellpadding="0" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="forum-icon float-left"><img src="{$theme['imgdir']}/forum-icons/forum-icon-{$forum['fid']}.png" /></div>
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><a href="{$forum_url}" class="cat-link">{$forum['name']}</a><div class="smalltext cat-description">{$forum['description']}</div></div>
</td>
</tr>
</thead>
</table>
<div style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<table border="0" cellspacing="0" cellpadding="0" class="tborder">
<tbody >
<tr>
<td class="tcat" colspan="2"><span class="smalltext">{$lang->forumbit_forum}</span></td>
<td class="tcat forumnum-post-tcat" width="170" align="center" style="white-space: nowrap;"><span class="smalltext" style=" margin-right: 25px; ">{$lang->forumbit_threads} & {$lang->forumbit_posts}</strong></span></td>
<td class="tcat last-post-tcat" width="220" align="center"><span class="smalltext">{$lang->forumbit_lastpost}</span></td>
</tr>
{$sub_forums}
</tbody>
</table>
</div>
<br />