mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-17 03:40:41 -04:00
Fix email expand/collapse not working
The click event was scoped to the wrong element.
This commit is contained in:
@@ -11,12 +11,9 @@
|
||||
`)
|
||||
.addClass('collapsed');
|
||||
|
||||
this.$toggle = this.$component.find('.toggle');
|
||||
|
||||
this.$toggle
|
||||
this.$toggle = this.$component.find('.toggle')
|
||||
.on(
|
||||
"click",
|
||||
".toggle",
|
||||
this.change
|
||||
)
|
||||
.on("keydown", this.filterKeyPresses([32, 13], this.change));
|
||||
@@ -34,7 +31,7 @@
|
||||
|
||||
this.change = () => this.toggleCollapsed() && this.$toggle.remove();
|
||||
|
||||
this.toggleCollapsed = () => this.$component.toggleClass('collapsed');
|
||||
this.toggleCollapsed = () => this.$component.removeClass('collapsed');
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</table>
|
||||
{% endif %}
|
||||
<div class="email-message-body" data-module="expand-collapse">
|
||||
<div class="email-message-body-wrapper collapsed">
|
||||
<div class="email-message-body-wrapper">
|
||||
{{ body|nl2br }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user