mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
FIX: disable poll dialect when poll plugin is disabled
This commit is contained in:
parent
1853829471
commit
26c743a962
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue