mirror of https://github.com/xwiki-labs/cryptpad
Crowdfunding config
This commit is contained in:
parent
003b0f7571
commit
6257b23f16
|
@ -615,7 +615,7 @@ define([
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
var crowdFunding = h('button', [
|
var crowdFunding = AppConfig.disableCrowdfundingMessages ? undefined : h('button', [
|
||||||
Msg.crowdfunding_home1,
|
Msg.crowdfunding_home1,
|
||||||
h('br'),
|
h('br'),
|
||||||
Msg.crowdfunding_home2
|
Msg.crowdfunding_home2
|
||||||
|
|
|
@ -2329,6 +2329,7 @@ define([
|
||||||
var crowdfundingState = false;
|
var crowdfundingState = false;
|
||||||
UIElements.displayCrowdfunding = function (common) {
|
UIElements.displayCrowdfunding = function (common) {
|
||||||
if (crowdfundingState) { return; }
|
if (crowdfundingState) { return; }
|
||||||
|
if (AppConfig.disableCrowdfundingMessages) { return; }
|
||||||
crowdfundingState = true;
|
crowdfundingState = true;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
common.getAttribute(['general', 'crowdfunding'], function (err, val) {
|
common.getAttribute(['general', 'crowdfunding'], function (err, val) {
|
||||||
|
|
Loading…
Reference in New Issue