mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Inline support for expandit behavior.
This commit is contained in:
@@ -3603,7 +3603,7 @@ class e_form
|
||||
$ttl = $expand."<button class='btn btn-default btn-xs btn-mini pull-right' {$dataAttr}>" . LAN_MORE . "</button>";
|
||||
}
|
||||
|
||||
$expands = '<a href="#'.$elid.'-expand" class="e-show-if-js e-expandit">'.defset($ttl, $ttl)."</a>";
|
||||
$expands = '<a href="#'.$elid.'-expand" class="e-show-if-js e-expandit e-expandit-inline">'.defset($ttl, $ttl)."</a>";
|
||||
}
|
||||
|
||||
$oldval = $value;
|
||||
|
@@ -234,7 +234,14 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
{
|
||||
if($(this).is(':visible'))
|
||||
{
|
||||
$(this).css('display', 'block'); //XXX 'initial' broke the default behavior.
|
||||
if($this.hasClass('e-expandit-inline'))
|
||||
{
|
||||
$(this).css('display', 'initial');
|
||||
}
|
||||
else
|
||||
{
|
||||
$(this).css('display', 'block'); //XXX 'initial' broke the default behavior.
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user