Hook on the client side when a post enters a queue of posts
-
@baris said in Hook on the client side when a post enters a queue of posts:
Are you putting the code in browser console and trying to post a new topic?
Yes exactly.
@baris said in Hook on the client side when a post enters a queue of posts:
$(window).on('action:composer.topics.post', function (ev, hookData) {
console.log('isQueued', hookData.data.queued);
});I tried it too - same thing, nothing printed.
@baris said in Hook on the client side when a post enters a queue of posts:
The value actions for this hook are topics.post, posts.reply and posts.edit.
Thanks. Is there a place where this is neatly detailed?
Without having to look much at the source code ... -
@baris I tried here in the forum the code you gave - and it did not work ...
-
@baris I did exactly the same thing, and nothing was printed ...
I made 2 small screenshots (4.4 MB total) that show this.
https://www.filemail.com/d/wairfqzrzpgoreu