Skip to content

Commit 950f0aa

Browse files
committed
Hide check when comment is an internal note
1 parent 8a212c7 commit 950f0aa

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Views/tickets/partials/comments/new_in_createedit_ticket_form.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
<input type="hidden" class="jquery_level2_enable input_response_type" name="response_x" value="note" disabled="disabled">
2626
<textarea style="display: none" rows="5" class="form-control jquery_level2_enable input_comment_text" name="comment_x" cols="50" disabled="disabled"></textarea>
2727
<div class="jquery_error_text"></div>
28-
<label><input type="checkbox" class="input_comment_notification_text" name="comment_x_notification_text" value="yes" disabled> {{ trans('panichd::lang.show-ticket-add-com-check-email-text') }}</label>
28+
<label class="mt-2" style="display: none"><input type="checkbox" class="input_comment_notification_text" name="comment_x_notification_text" value="yes" disabled> {{ trans('panichd::lang.show-ticket-add-com-check-email-text') }}</label>
2929
</div>
3030
</div>

src/Views/tickets/partials/comments/new_in_createedit_ticket_scripts.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@
3030
$(this).find('.text').text($(this).data('comment-text'));
3131
_block.find('.note_title').hide();
3232
_block.find('.comment_title').show();
33+
_block.find('.input_comment_notification_text').closest('label').show();
3334
}else{
3435
// Switch to internal note
3536
$(this).find('i.fas').removeClass('fa-pencil-alt').addClass('fa-comment');
3637
_block.find('.input_response_type').val('note');
3738
$(this).find('.text').text($(this).data('note-text'));
3839
_block.find('.note_title').show();
3940
_block.find('.comment_title').hide();
41+
_block.find('.input_comment_notification_text').closest('label').hide();
4042
}
4143
});
4244

0 commit comments

Comments
 (0)