Code: Select all
$(this).delay(5000).fadeOut(500, function () {
Code: Select all
// Display "Your vote has been cast." message. Disappears after 5 seconds.
var confirmationDelay = (res.can_vote) ? 300 : 900;
poll.find('.vote-submitted').delay(confirmationDelay).slideDown(200, function () {
if (resultsVisible) {
updatePanelHeight();
}
$(this).delay(5000).fadeOut(500, function () {
resizePanel(300);
});
});
// Remove the gap resulting from removing options
setTimeout(function () {
resizePanel(500);
}, 1500);
}
},
In "language/en/viewtopic.php". In other languages look for the variable VOTE_SUBMITTED.Lord Phobos wrote: ↑Thu Feb 07, 2019 8:29 pm In which language file I should find the string "Your vote has been cast."?
Yes.Lord Phobos wrote: ↑Thu Feb 07, 2019 8:33 pm I think this is the crucial part, in the function.js file:
The message appears after that loading rotation dissapears.Lord Phobos wrote: ↑Thu Feb 07, 2019 8:26 pm In this case, I just see a loading rotation for a few seconds but no messages.
After the vote is submitted, the jQuery function "slideDown" makes visible the message, "delay(5000)" waits 5 seconds and "fadeOut(500" fades the message to transparent during half second.<div class="vote-submitted hidden" style="display: none;">Your vote has been cast.</div>
Code: Select all
<div class="vote-submitted hidden">Il tuo voto è stato registrato.</div>
Code: Select all
phpbb.confirm(poll.find('.vote-submitted').text());
$(this).delay(5000).fadeOut(500, function () {
resizePanel(300);
});
Code: Select all
// Display "Your vote has been cast." message. Disappears after 5 seconds.
var confirmationDelay = (res.can_vote) ? 300 : 900;
poll.find('.vote-submitted').delay(confirmationDelay).slideDown(200, function () {
if (resultsVisible) {
updatePanelHeight();
}
$(this).delay(5000).fadeOut(500, function () {
resizePanel(300);
});
});
phpbb.confirm(poll.find('.vote-submitted').text());
$(this).delay(5000).fadeOut(500, function () {
resizePanel(300);
});