From 6257b23f161908d21f8e7a02ccceb461f96f21ab Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 14 Sep 2018 10:36:29 +0200 Subject: [PATCH] Crowdfunding config --- customize.dist/pages.js | 2 +- www/common/common-ui-elements.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/customize.dist/pages.js b/customize.dist/pages.js index 7b8c5bb3f..d20d0d33c 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -615,7 +615,7 @@ define([ } ]); - var crowdFunding = h('button', [ + var crowdFunding = AppConfig.disableCrowdfundingMessages ? undefined : h('button', [ Msg.crowdfunding_home1, h('br'), Msg.crowdfunding_home2 diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 8e45a6a93..2fcf0f3e0 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2329,6 +2329,7 @@ define([ var crowdfundingState = false; UIElements.displayCrowdfunding = function (common) { if (crowdfundingState) { return; } + if (AppConfig.disableCrowdfundingMessages) { return; } crowdfundingState = true; setTimeout(function () { common.getAttribute(['general', 'crowdfunding'], function (err, val) {