mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-24 21:03:42 +00:00
#8374: Adding missing classes to body div
This commit is contained in:
parent
8ff88b2eee
commit
858904090e
1 changed files with 4 additions and 1 deletions
|
@ -46,6 +46,8 @@ function addHeightToggleHandler(id) {
|
||||||
|
|
||||||
$(itemIdSel).wrap('<div id="' + wrapperId + '" class="wall-item-body-wrapper"></div>');
|
$(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>');
|
$(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).show();
|
||||||
$(toggleIdSel).click(function(el) {
|
$(toggleIdSel).click(function(el) {
|
||||||
|
@ -60,7 +62,8 @@ function processHeightLimit(id) {
|
||||||
|
|
||||||
if (!$(idSel).hasClass("limitable")) {
|
if (!$(idSel).hasClass("limitable")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var itemId = $(idSel).data("item-id");
|
var itemId = $(idSel).data("item-id");
|
||||||
var toggleSelector = "#wall-item-body-toggle-" + itemId;
|
var toggleSelector = "#wall-item-body-toggle-" + itemId;
|
||||||
|
|
Loading…
Reference in a new issue