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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user