From c0758cbf53f1d672bf55e1af93e709f8a5e6869b Mon Sep 17 00:00:00 2001 From: AJ00007 <67185443+AJ00007@users.noreply.github.com> Date: Wed, 10 Feb 2021 00:00:09 +0530 Subject: [PATCH 1/2] fixing undefined refernce error --- site/static/js/donate.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/site/static/js/donate.js b/site/static/js/donate.js index b972acc5b1..623f7a10c4 100644 --- a/site/static/js/donate.js +++ b/site/static/js/donate.js @@ -49,12 +49,12 @@ function hider(channel, no) { Two seperate jquery functions are used in stripe payment for donation and regular supporter. On clicking the donate button with ids customButton and customButtone respective fumctions will be called*/ -(function() { +(function () { var amount = 25; var handler = StripeCheckout.configure({ key: 'pk_live_TYUOty0alel95s5ZGMydBd8Q', image: '/img/fossasia_400x400.png', - token: function(token) { + token: function (token) { $("#stripeToken").val(token.id); $("#stripeEmail").val(token.email); @@ -63,7 +63,7 @@ will be called*/ $("#myForm").submit(); } }); - $("#button1id").on("click", function() { + $("#button1id").on("click", function () { var form = serialize($(this).closest("form")[0], true); amount = form.otheram || form.amount handler.open({ @@ -74,23 +74,24 @@ will be called*/ return false }); - $("#myForm").on("change", "[name=amount]", function() { + $("#myForm").on("change", "[name=amount]", function () { $("#otheram").val("") }) - $("#otheram").on("type change input paste", function() { + $("#otheram").on("type change input paste", function () { $("#myForm [name=amount]").removeAttr("checked"); }); + // Close Checkout on page navigation + $(window).on('popstate', function () { + handler.close(); + }); + })() -// Close Checkout on page navigation -$(window).on('popstate', function() { - handler.close(); -}); function createN(name, key) { return $("").attr("name", name).attr("value", key) } -$("#Paypal").click(function() { +$("#Paypal").click(function () { $("#myForm").attr("action", "https://www.paypal.com/cgi-bin/webscr").append(createN("business", "office@fossasia.org")).append(createN("cmd", "donations")).append(createN("item_name", "FOSSASIA friends")).append(createN("item_number", "Supportin FOSSASIA")).append(createN("currency_code", "USD")); From 507637af002fcf46c60e4ce096ca03edcc81b936 Mon Sep 17 00:00:00 2001 From: AJ00007 <67185443+AJ00007@users.noreply.github.com> Date: Wed, 10 Feb 2021 00:14:31 +0530 Subject: [PATCH 2/2] correcting a typo --- site/languages/strings.en.toml | 2 +- site/languages/strings.id.toml | 4 ++-- site/languages/strings.vi.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/languages/strings.en.toml b/site/languages/strings.en.toml index 70bcb23702..27f46ba36e 100644 --- a/site/languages/strings.en.toml +++ b/site/languages/strings.en.toml @@ -20,7 +20,7 @@ # Start banner [Languages.en.start] - subtitle1 = "Why is software created using taxpayers' money not released as Free and Open Source Software?" + subtitle1 = "Why is software created using taxpayer's money not released as Free and Open Source Software?" subtitle2 = "We want legislation requiring that publicly financed software developed for the public sector be made publicly available under a [Free and Open Source Software](https://en.wikipedia.org/wiki/Free_and_open-source_software) licence. If it is public money, it should be public code as well. Following initiatives [across the globe](https://publiccode.eu), we are calling for the release of code that is paid by the public." subtitle3 = "**Code paid by the people should be available to the people!**" diff --git a/site/languages/strings.id.toml b/site/languages/strings.id.toml index 167ac37556..ad9e5a88a2 100644 --- a/site/languages/strings.id.toml +++ b/site/languages/strings.id.toml @@ -32,12 +32,12 @@ # Start banner #[Languages.en.start] -# subtitle1 = "Why is software created using taxpayers' money not released as Free and Open Source Software?" +# subtitle1 = "Why is software created using taxpayer's money not released as Free and Open Source Software?" # subtitle2 = "We want legislation requiring that publicly financed software developed for the public sector be made publicly available under a [Free and Open Source Software](https://en.wikipedia.org/wiki/Free_and_open-source_software) licence. If it is public money, it should be public code as well. Following initiatives [across the globe](https://publiccode.eu), we are starting an initiative to call for the release of code that is paid by the public." # subtitle3 = "**Code paid by the people should be available to the people!**" # Start banner [Languages.id.start] - subtitle1 = "Why is software created using taxpayers' money not released as Free and Open Source Software?" + subtitle1 = "Why is software created using taxpayer's money not released as Free and Open Source Software?" subtitle2 = "We want legislation requiring that publicly financed software developed for the public sector be made publicly available under a [Free and Open Source Software](https://en.wikipedia.org/wiki/Free_and_open-source_software) licence. If it is public money, it should be public code as well. Following initiatives [across the globe](https://publiccode.eu), we are starting an initiative to call for the release of code that is paid by the public." subtitle3 = "**Code paid by the people should be available to the people!**" diff --git a/site/languages/strings.vi.toml b/site/languages/strings.vi.toml index 16c42f42b6..c18205087c 100644 --- a/site/languages/strings.vi.toml +++ b/site/languages/strings.vi.toml @@ -29,7 +29,7 @@ # Start banner [Languages.vi.start] - # subtitle1 = "Why is software created using taxpayers' money not released as Free Software?" + # subtitle1 = "Why is software created using taxpayer's money not released as Free Software?" # subtitle2 = "We want legislation requiring that publicly financed software developed for the public sector be made publicly available under a [Free and Open Source Software](https://en.wikipedia.org/wiki/Free_and_open-source_software 'Free Software gives everybody the rights to use, study, share and improve software. These rights help support other fundamental freedoms like freedom of speech, press and privacy.') licence. If it is public money, it should be public code as well." # subtitle3 = "**Code paid by the people should be available to the people!**" subtitle1 = "Waarom is software die geschreven is met belastinggeld niet beschikbaar als Vrije Software?"