mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
|
// default poll attributes
|
||||||
var attributes = { "class": "poll" };
|
var attributes = { "class": "poll" };
|
||||||
attributes[DATA_PREFIX + "status"] = "open";
|
attributes[DATA_PREFIX + "status"] = "open";
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
plugins:
|
plugins:
|
||||||
poll_enabled:
|
poll_enabled:
|
||||||
default: true
|
default: true
|
||||||
|
client: true
|
||||||
poll_maximum_options:
|
poll_maximum_options:
|
||||||
default: 20
|
default: 20
|
||||||
client: true
|
client: true
|
||||||
|
|||||||
Reference in New Issue
Block a user