Created
June 3, 2017 18:00
-
-
Save a904guy/8decfb6a1c3e041342807c65c15c5878 to your computer and use it in GitHub Desktop.
LN-Quick-Message-Reply-On-Click
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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