1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

News Archive Menu added. e-expandit now adds the 'open' css class when expanded.

This commit is contained in:
Cameron
2017-10-09 14:05:48 -07:00
parent d9a937d765
commit 8b32e679c7
4 changed files with 112 additions and 0 deletions

View File

@@ -212,6 +212,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
// default 'toggle'.
$(this).click(function ()
{
var $this = $(this);
var href = ($this.is("a")) ? $this.attr("href") : '';
var $button = $this.find('button');
@@ -264,6 +265,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
{
if($(this).is(':visible'))
{
$this.addClass('open');
if($this.hasClass('e-expandit-inline'))
{
$(this).css('display', 'initial');
@@ -273,6 +275,10 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
$(this).css('display', 'block'); //XXX 'initial' broke the default behavior.
}
}
else
{
$this.removeClass('open');
}
});
return false;