mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +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>";
|
$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;
|
$oldval = $value;
|
||||||
|
@@ -233,9 +233,16 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
$(href).slideToggle('slow', function ()
|
$(href).slideToggle('slow', function ()
|
||||||
{
|
{
|
||||||
if($(this).is(':visible'))
|
if($(this).is(':visible'))
|
||||||
|
{
|
||||||
|
if($this.hasClass('e-expandit-inline'))
|
||||||
|
{
|
||||||
|
$(this).css('display', 'initial');
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
$(this).css('display', 'block'); //XXX 'initial' broke the default behavior.
|
$(this).css('display', 'block'); //XXX 'initial' broke the default behavior.
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user