05-Dec-2019, 01:52 PM
Hello,
Please help.
How to disable rating, when user replys to someone message.
Thank you for help.
Please help.
How to disable rating, when user replys to someone message.
Thank you for help.
$(document).ready(function() {
$('#cmtx_container').on('click', '.cmtx_reply_link', function(e) { // user clicks the comment reply link
e.preventDefault();
$('.cmtx_rating_row').hide(); // hide the rating field
});
$('body').on('click', '.cmtx_message_reply a', function(e) { // user clicks to cancel the reply
e.preventDefault();
$('.cmtx_rating_row').show(); // show the rating field
});
});
<script>
setTimeout(function(){
$(document).ready(function() {
$('#cmtx_container').on('click', '.cmtx_reply_link', function(e) { // user clicks the comment reply link
e.preventDefault();
// hide the rating field
$('#cmtx_form').css('overflow-x', 'hidden');
$('#cmtx_form').css('position', 'relative');
$('.cmtx_rating_row').css('position', 'absolute');
$('.cmtx_rating_row').css('margin-left', '2000px');
});
$('body').on('click', '.cmtx_message_reply a', function(e) { // user clicks to cancel the reply
e.preventDefault();
// show the rating field
$('#cmtx_form').css('overflow-x', 'visible');
$('#cmtx_form').css('position', 'static');
$('.cmtx_rating_row').css('position', 'static');
$('.cmtx_rating_row').css('margin-left', '0');
});
});
}, 3000);
</script>