1
0
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:
Lóna Lore
2017-07-24 22:57:58 +02:00
parent a40be42092
commit 1da41a2288
2 changed files with 4 additions and 18 deletions

View File

@@ -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.
*