Skip to content

Commit a0118a7

Browse files
authored
Bug 2004722 - Cannot expand hidden comment any more, when not logged in
1 parent 2fecec4 commit a0118a7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

extensions/BugModal/web/comments.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,13 @@ $(function() {
105105

106106
// Reference the form element’s jQuery object. We use event delegation so these still work after
107107
// dynamic HTML updates.
108-
const form = $('#changeform')
109-
.on('click', '.change-spinner', function(event) {
110-
event.preventDefault();
111-
toggleChange($(this));
112-
});
108+
const form = $('#changeform');
109+
110+
// individual comment toggles: logged-out users don’t have the form, so bind to `#main-inner`
111+
$('#main-inner').on('click', '.change-spinner', function(event) {
112+
event.preventDefault();
113+
toggleChange($(this));
114+
});
113115

114116
// view and tag menus
115117

0 commit comments

Comments
 (0)