I have found the culprit. When the result are visible, the extension uses the official function vote_poll() in styles/prosilver/template/ajax.js and then another function from the extension. But around phpBB 3.2.5 the second line of vote_poll() was changed from:
Code: Select all
var poll = $(this).closest('.topic_poll');
And after that change the variable poll
gets nothing when vote_poll() is used from my extension.
Changing that file is a bad idea because that change will disappear with future phpBB updates, so the solution is to clone the old vote_poll function in my extension and use it instead of the official one. I'll release this fix soon, but I would prefer a clever fix with one or two lines and using the original function instead of cloning the old one.