Skip to content

Commit 59ec399

Browse files
committed
Recover comment highlighting when opening related modal
1 parent 1021c95 commit 59ec399

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Views/tickets/show/script.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@
117117
118118
// Highlight related comment when showing related modal
119119
$('.jquery_panel_hightlight').on('show.bs.modal', function (e) {
120-
$(e.relatedTarget).closest('div.panel').addClass('card-highlight');
120+
$(e.relatedTarget).closest('div.card').addClass('card-highlight');
121121
});
122122
123123
$('.jquery_panel_hightlight').on('hidden.bs.modal', function (e) {
124-
$('div.panel').removeClass('card-highlight');
124+
$('div.card').removeClass('card-highlight');
125125
});
126126
127127
$('#new_comment_submit').click(function(e){

0 commit comments

Comments
 (0)