#8374: Adding missing classes to body div

This commit is contained in:
Christian Wiwie 2020-03-12 23:38:20 +01:00
parent 8ff88b2eee
commit 858904090e

View file

@ -46,6 +46,8 @@ function addHeightToggleHandler(id) {
$(itemIdSel).wrap('<div id="' + wrapperId + '" class="wall-item-body-wrapper"></div>');
$(wrapperIdSel).append('<div class="wall-item-body-toggle" data-item-id="' + itemId + '" id="' + toggleId + '" ><a href="javascript:void(0)" class="wall-item-body-toggle-text">Show more ...</a></div>');
$(itemIdSel).addClass("limitable");
$(itemIdSel).addClass("limit-height");
$(toggleIdSel).show();
$(toggleIdSel).click(function(el) {
@ -62,6 +64,7 @@ function processHeightLimit(id) {
return false;
}
var itemId = $(idSel).data("item-id");
var toggleSelector = "#wall-item-body-toggle-" + itemId;
if ($(idSel).height() < 250) {