From 13d511d037ad4282e5585d562c3b34597870e0b2 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 20 Sep 2018 10:04:08 -0400 Subject: [PATCH] fix broken link --- customize.dist/pages.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/customize.dist/pages.js b/customize.dist/pages.js index 578c1dc24..601d3034d 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -615,17 +615,21 @@ define([ } ]); + var _link = h('a', { + href: "https://opencollective.com/cryptpad/contribute", + target: '_blank', + rel: 'noopener', + }); + var crowdFunding = AppConfig.disableCrowdfundingMessages ? undefined : h('button', [ Msg.crowdfunding_home1, h('br'), - Msg.crowdfunding_home2 + Msg.crowdfunding_home2, + link ]); + $(crowdFunding).click(function () { - var a = document.createElement("a"); - a.href = "https://opencollective.com/cryptpad/contribute"; - a.target = "_blank"; - a.rel = "noopener"; - a.click(); + link.click(); }); return [