From 6f2e301528f41db1fa10fdebaf0215594cfb3f8c Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Tue, 6 Apr 2021 20:26:23 +0200 Subject: [PATCH] get rid of console.log debug statements --- static/js/map.js | 1 - static/js/order.js | 6 ------ static/js/tracker.js | 13 ------------- 3 files changed, 20 deletions(-) diff --git a/static/js/map.js b/static/js/map.js index fec9809..e3d8686 100644 --- a/static/js/map.js +++ b/static/js/map.js @@ -55,7 +55,6 @@ function getDownloadFilename(deveui, start, stop) { var mdstart = moment(start); var mdstop = moment(stop); filename = deveui + "_" + mdstart.format('DD.MM.YYYY') + "_bis_" + mdstop.format('DD.MM.YYYY') + ".csv"; - console.log(filename); return filename; } diff --git a/static/js/order.js b/static/js/order.js index 7426ac5..cad0036 100644 --- a/static/js/order.js +++ b/static/js/order.js @@ -21,7 +21,6 @@ $(document).ready(function () { if (username != "") { $("#email").val(username); } - console.log(username); $("#quantity_exclamation").hide(); $("#email_exclamation").hide(); @@ -95,14 +94,10 @@ $(document).ready(function () { } ), success: function(response) { - console.log("SUCCESS"); - console.log(response); $("#modal").removeClass("is-active"); $("#success_message").removeClass("is-hidden"); }, error: function(xhr) { - console.log("ERROR"); - console.log(xhr); $("#modal").removeClass("is-active"); $("#error_message").removeClass("is-hidden"); } @@ -116,7 +111,6 @@ $(document).ready(function () { }); function callback() { - console.log("Callback Funktion wird aufgerufen"); $('#quantity').focus().select(); } diff --git a/static/js/tracker.js b/static/js/tracker.js index cb43224..e35f009 100644 --- a/static/js/tracker.js +++ b/static/js/tracker.js @@ -21,8 +21,6 @@ function HandleAbocostResponse(data) { counter = 0; total_amount = 0; charge_data = ''; - console.log("Response: "); - console.log(data); abo_table = ''; abo_table += ''; jQuery.each(ordered, function (index, val) { @@ -39,7 +37,6 @@ function HandleAbocostResponse(data) { abo_table += "
Aliasverlängern bisBetrag
"; if (counter > 0) { $("#abos_verlaengern").html(abo_table); - console.log("charge_data: " + charge_data); $("#charge_data").html(charge_data); $("#cart").addClass("is-active"); } @@ -68,7 +65,6 @@ $(document).ready(function () { $(".abo_plus").click(function () { var deveui = $(this).prev().attr('id').replace("abo_add_years_", ""); - console.log(deveui); el = $(this).parent().find(".abo_add_years"); el_text = $(this).parent().parent().find(".abo_add_years_text"); counter = Number(el.html()); @@ -86,7 +82,6 @@ $(document).ready(function () { el_text.html("+" + counter + " Jahre"); } } - console.log("abos_to_buy: %o", abos_to_buy); }); $(".abo_minus").click(function () { @@ -111,8 +106,6 @@ $(document).ready(function () { el_text.html("+" + counter + " Jahre"); } } - console.log("deveui: %s", deveui); - console.log("abos_to_buy: %o", abos_to_buy); }); function add_years(dt, n) { @@ -120,7 +113,6 @@ $(document).ready(function () { } $(".abo_pay").click(function () { - console.log(Object.keys(abos_to_buy).length); if (Object.keys(abos_to_buy).length < 1) { return; } @@ -131,9 +123,6 @@ $(document).ready(function () { dataType: "json", data: JSON.stringify(abos_to_buy), success: function(response) { - console.log("SUCCESS"); - console.log(response.stripe_pk); - console.log(response.data); if (stripe_pk == "") { stripe_pk = response['stripe_pk']; loadStripeLibrary(); @@ -141,8 +130,6 @@ $(document).ready(function () { HandleAbocostResponse(response['data']); }, error: function(xhr) { - console.log("ERROR"); - console.log(xhr); } });