1
0
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:
Lóna Lore
2016-03-25 09:32:28 +01:00
parent 2e5cf2b05e
commit 5498c0ac15
2 changed files with 9 additions and 2 deletions

View File

@@ -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;

View File

@@ -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.
}
}
});