FIX: validate poll parameters when type=multiple

This commit is contained in:
Régis Hanol
2015-06-01 19:28:05 +02:00
parent 72f7c26514
commit f736b6face
5 changed files with 26 additions and 3 deletions

View File

@ -57,7 +57,7 @@
if (attributes[DATA_PREFIX + "type"] === "number") {
// default values
if (isNaN(min)) { min = 1; }
if (isNaN(max)) { max = 10; }
if (isNaN(max)) { max = Discourse.SiteSettings.poll_maximum_options; }
if (isNaN(step)) { step = 1; }
// dynamically generate options
contents.push(["bulletlist"]);