FCLT#55757 Class 'open' maakt max-height: none, dat willen we eigenlijk voorkomen, dus plakken we deze pas achteraan

svn path=/Website/branches/v2018.2/; revision=40208
This commit is contained in:
2018-12-12 15:49:39 +00:00
parent 5e6721d06c
commit ca84e33f1e

View File

@@ -247,9 +247,6 @@ if (mld_key > 0)
function toggleNotes(event, toggleAll)
{
$(this).toggleClass("open");
$(this).prev().toggleClass("open");
var maxHeight = getScrollHeight($(this).prev());
var initMaxHeight = $(this).prev().hasClass("autocollapse") ? 18 : 100;
@@ -261,15 +258,18 @@ if (mld_key > 0)
// ...meer/...minder toggle
if ($(this).hasClass("open"))
{
$(this).prev().animate({ "maxHeight": maxHeight }, ANIMATION_DURATION);
$(this).html("<%=L("lcl_rs_truncate")%>");
}
else
{
$(this).prev().animate({ "maxHeight": initMaxHeight }, ANIMATION_DURATION);
$(this).html("<%=L("lcl_rs_truncated")%>");
}
else
{
$(this).prev().animate({ "maxHeight": maxHeight }, ANIMATION_DURATION);
$(this).html("<%=L("lcl_rs_truncate")%>");
}
$(this).toggleClass("open");
$(this).prev().toggleClass("open");
if (!toggleAll)
{