mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 14:44:34 +08:00
FIX: disable poll dialect when poll plugin is disabled
This commit is contained in:
@ -36,6 +36,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Disable dialect when poll plugin is disabled
|
||||
if (!Discourse.SiteSettings.poll_enabled) { return ["div"].concat(contents); }
|
||||
|
||||
// default poll attributes
|
||||
var attributes = { "class": "poll" };
|
||||
attributes[DATA_PREFIX + "status"] = "open";
|
||||
|
@ -1,6 +1,7 @@
|
||||
plugins:
|
||||
poll_enabled:
|
||||
default: true
|
||||
client: true
|
||||
poll_maximum_options:
|
||||
default: 20
|
||||
client: true
|
||||
|
Reference in New Issue
Block a user