Remove per-participant word limit from word clouds
Participants can now always submit any number of words. Drops the max_words setting, its form field, the limit checks in VoteService and the remaining/limitReached state; existing max_words values in stored settings are ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6cc813f87b
commit
bd17a97487
10 files changed
+26
-87
No files matched your search
+2
-10
@@ -554,7 +554,7 @@
|
||||
|
||||
function canUpvote(state) {
|
||||
return !!(wordForm && state.words && state.words.allowUpvotes
|
||||
&& state.isVotingOpen && !state.words.limitReached);
|
||||
&& state.isVotingOpen);
|
||||
}
|
||||
|
||||
function renderResults(state) {
|
||||
@@ -626,18 +626,10 @@
|
||||
|
||||
function applyWordState(state) {
|
||||
if (state.version !== version || !state.words) {
|
||||
// Limit reached, slide changed or voting closed.
|
||||
// Slide changed or voting closed.
|
||||
window.location.reload();
|
||||
return;
|
||||
}
|
||||
var remaining = wordForm.querySelector('[data-words-remaining]');
|
||||
if (state.words.remaining === null) {
|
||||
remaining.textContent = 'Du kannst beliebig viele Begriffe abgeben.';
|
||||
} else {
|
||||
remaining.textContent = state.words.remaining === 1
|
||||
? 'Du kannst noch einen Begriff abgeben.'
|
||||
: 'Du kannst noch ' + state.words.remaining + ' Begriffe abgeben.';
|
||||
}
|
||||
renderResults(state);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user