Skip to content
Snippets Groups Projects
Commit 8660e42c authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Set full-text class on ellipsis action instead of target div

parent b4fef83d
No related branches found
No related tags found
1 merge request!51Display contact information on dataset page and use text-ellipsis for long description texts
......@@ -51,7 +51,7 @@ $(document).ready(function () {
readMoreLink.click(function (event) {
event.preventDefault();
targetContent.css('max-height', 'none');
targetContent.addClass("full-text");
ellipsisAction.addClass("full-text");
if (overlay) overlay.hide();
readMoreLink.hide();
readLessLink.show();
......@@ -60,7 +60,7 @@ $(document).ready(function () {
readLessLink.click(function (event) {
event.preventDefault();
targetContent.css('max-height', maxContentHeight + 'px');
targetContent.removeClass("full-text");
ellipsisAction.removeClass("full-text");
if (overlay) overlay.show();
readMoreLink.show();
readLessLink.hide();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment