Skip to content

Commit

Permalink
Remove other references
Browse files Browse the repository at this point in the history
  • Loading branch information
josepjaume committed Apr 24, 2022
1 parent f73dc2f commit 7166ed9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$(() => {
const isShowMoreButton = ($button) => $button.hasClass("show-more-content");

const remToPx = (count) => {
const unit = $("html").css("font-size");

Expand All @@ -25,17 +23,12 @@ $(() => {
$content.css("max-height", contentMaxHeight);
}

$button.on("click", (event) => {
const $buttonTextMore = $button.find(".button-text.show-more-content");
$button.on("click", () => {
const $buttonTextLess = $button.find(".button-text.show-less-content");

let newHeight = contentMaxHeight;
if (isShowMoreButton($(event.target))) {
newHeight = contentHeight;
}

$content.css("max-height", newHeight);
$buttonTextLess.toggleClass("hide");
$buttonTextMore.toggleClass("hide");
});
});
1 change: 0 additions & 1 deletion decidim-elections/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,6 @@ en:
name: Highlighted votings
landing_page:
description:
show_less: Read less
show_more: Read more
title: About this voting
metrics:
Expand Down

0 comments on commit 7166ed9

Please sign in to comment.