mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Fix for issue #2741
This commit is contained in:
@@ -207,6 +207,8 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
{
|
||||
$(context).find('.e-expandit').once('e-expandit').each(function ()
|
||||
{
|
||||
$(this).show();
|
||||
|
||||
// default 'toggle'.
|
||||
$(this).click(function ()
|
||||
{
|
||||
@@ -254,8 +256,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
|
||||
if(href === "#" || href == "")
|
||||
{
|
||||
var idt = $(this).nextAll("div");
|
||||
$(idt).slideToggle("slow");
|
||||
$(this).nextAll("div").slideToggle("slow");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -330,21 +331,6 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Behavior to show elements.
|
||||
*
|
||||
* @type {{attach: e107.behaviors.eExpandIt.attach}}
|
||||
*/
|
||||
e107.behaviors.eExpandIt = {
|
||||
attach: function (context, settings)
|
||||
{
|
||||
$(context).find('.e-expandit').once('e-expand-it').each(function ()
|
||||
{
|
||||
$(this).show();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if the selector is valid.
|
||||
*
|
||||
|
Reference in New Issue
Block a user