From 5498c0ac152234652b54139c8d0498c4b8334ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Fri, 25 Mar 2016 09:32:28 +0100 Subject: [PATCH] Inline support for expandit behavior. --- e107_handlers/form_handler.php | 2 +- e107_web/js/core/all.jquery.js | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index a66bbf1d8..a4e66c87d 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -3603,7 +3603,7 @@ class e_form $ttl = $expand.""; } - $expands = ''.defset($ttl, $ttl).""; + $expands = ''.defset($ttl, $ttl).""; } $oldval = $value; diff --git a/e107_web/js/core/all.jquery.js b/e107_web/js/core/all.jquery.js index b770fa4f0..955304c62 100644 --- a/e107_web/js/core/all.jquery.js +++ b/e107_web/js/core/all.jquery.js @@ -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. + } } });