Skip to content

Instantly share code, notes, and snippets.

@a904guy
Created June 3, 2017 18:00
Show Gist options
  • Save a904guy/8decfb6a1c3e041342807c65c15c5878 to your computer and use it in GitHub Desktop.
Save a904guy/8decfb6a1c3e041342807c65c15c5878 to your computer and use it in GitHub Desktop.
LN-Quick-Message-Reply-On-Click
var message = 'Message to be sent here'
$(".msg-conversation-listitem__link").on('click.andy',
function (e) {
setTimeout(
function () {
console.log('Setting Message');
$('.msg-thread').find('textarea').val(message).attr('data-artdeco-is-focused', 'true').trigger('keyup');
setTimeout(
function () {
console.log('Submitting');
$('.msg-thread').find('.msg-compose-form__send-button').removeAttr('disabled').click();
console.log('Submitted');
},
100)
},
500)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment