FIX: disable poll dialect when poll plugin is disabled

This commit is contained in:
Régis Hanol 2015-09-14 20:11:03 +02:00
parent 1853829471
commit 26c743a962
2 changed files with 4 additions and 0 deletions

View file

@ -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";

View file

@ -1,6 +1,7 @@
plugins:
poll_enabled:
default: true
client: true
poll_maximum_options:
default: 20
client: true