From: Christian Wiwie Date: Thu, 12 Mar 2020 22:38:20 +0000 (+0100) Subject: #8374: Adding missing classes to body div X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=858904090ea88eea00fd370a4af1e7a234630b39;p=friendica-addons.git #8374: Adding missing classes to body div --- diff --git a/showmore_dyn/showmore_dyn.js b/showmore_dyn/showmore_dyn.js index 29368e7d..b6746660 100644 --- a/showmore_dyn/showmore_dyn.js +++ b/showmore_dyn/showmore_dyn.js @@ -46,6 +46,8 @@ function addHeightToggleHandler(id) { $(itemIdSel).wrap('
'); $(wrapperIdSel).append('
Show more ...
'); + $(itemIdSel).addClass("limitable"); + $(itemIdSel).addClass("limit-height"); $(toggleIdSel).show(); $(toggleIdSel).click(function(el) { @@ -60,7 +62,8 @@ function processHeightLimit(id) { if (!$(idSel).hasClass("limitable")) { return false; - } + } + var itemId = $(idSel).data("item-id"); var toggleSelector = "#wall-item-body-toggle-" + itemId;