get rid of console.log debug statements
This commit is contained in:
parent
473b0e4213
commit
6f2e301528
|
|
@ -55,7 +55,6 @@ function getDownloadFilename(deveui, start, stop) {
|
||||||
var mdstart = moment(start);
|
var mdstart = moment(start);
|
||||||
var mdstop = moment(stop);
|
var mdstop = moment(stop);
|
||||||
filename = deveui + "_" + mdstart.format('DD.MM.YYYY') + "_bis_" + mdstop.format('DD.MM.YYYY') + ".csv";
|
filename = deveui + "_" + mdstart.format('DD.MM.YYYY') + "_bis_" + mdstop.format('DD.MM.YYYY') + ".csv";
|
||||||
console.log(filename);
|
|
||||||
return filename;
|
return filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ $(document).ready(function () {
|
||||||
if (username != "") {
|
if (username != "") {
|
||||||
$("#email").val(username);
|
$("#email").val(username);
|
||||||
}
|
}
|
||||||
console.log(username);
|
|
||||||
$("#quantity_exclamation").hide();
|
$("#quantity_exclamation").hide();
|
||||||
$("#email_exclamation").hide();
|
$("#email_exclamation").hide();
|
||||||
|
|
||||||
|
|
@ -95,14 +94,10 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
console.log("SUCCESS");
|
|
||||||
console.log(response);
|
|
||||||
$("#modal").removeClass("is-active");
|
$("#modal").removeClass("is-active");
|
||||||
$("#success_message").removeClass("is-hidden");
|
$("#success_message").removeClass("is-hidden");
|
||||||
},
|
},
|
||||||
error: function(xhr) {
|
error: function(xhr) {
|
||||||
console.log("ERROR");
|
|
||||||
console.log(xhr);
|
|
||||||
$("#modal").removeClass("is-active");
|
$("#modal").removeClass("is-active");
|
||||||
$("#error_message").removeClass("is-hidden");
|
$("#error_message").removeClass("is-hidden");
|
||||||
}
|
}
|
||||||
|
|
@ -116,7 +111,6 @@ $(document).ready(function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
function callback() {
|
function callback() {
|
||||||
console.log("Callback Funktion wird aufgerufen");
|
|
||||||
$('#quantity').focus().select();
|
$('#quantity').focus().select();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,6 @@ function HandleAbocostResponse(data) {
|
||||||
counter = 0;
|
counter = 0;
|
||||||
total_amount = 0;
|
total_amount = 0;
|
||||||
charge_data = '';
|
charge_data = '';
|
||||||
console.log("Response: ");
|
|
||||||
console.log(data);
|
|
||||||
abo_table = '<table class="table is-bordered is-fullwidth" >';
|
abo_table = '<table class="table is-bordered is-fullwidth" >';
|
||||||
abo_table += '<tr><th class="is-2">Alias</th><th>verlängern bis</th><th class="has-text-right">Betrag</th></tr>';
|
abo_table += '<tr><th class="is-2">Alias</th><th>verlängern bis</th><th class="has-text-right">Betrag</th></tr>';
|
||||||
jQuery.each(ordered, function (index, val) {
|
jQuery.each(ordered, function (index, val) {
|
||||||
|
|
@ -39,7 +37,6 @@ function HandleAbocostResponse(data) {
|
||||||
abo_table += "</table>";
|
abo_table += "</table>";
|
||||||
if (counter > 0) {
|
if (counter > 0) {
|
||||||
$("#abos_verlaengern").html(abo_table);
|
$("#abos_verlaengern").html(abo_table);
|
||||||
console.log("charge_data: " + charge_data);
|
|
||||||
$("#charge_data").html(charge_data);
|
$("#charge_data").html(charge_data);
|
||||||
$("#cart").addClass("is-active");
|
$("#cart").addClass("is-active");
|
||||||
}
|
}
|
||||||
|
|
@ -68,7 +65,6 @@ $(document).ready(function () {
|
||||||
|
|
||||||
$(".abo_plus").click(function () {
|
$(".abo_plus").click(function () {
|
||||||
var deveui = $(this).prev().attr('id').replace("abo_add_years_", "");
|
var deveui = $(this).prev().attr('id').replace("abo_add_years_", "");
|
||||||
console.log(deveui);
|
|
||||||
el = $(this).parent().find(".abo_add_years");
|
el = $(this).parent().find(".abo_add_years");
|
||||||
el_text = $(this).parent().parent().find(".abo_add_years_text");
|
el_text = $(this).parent().parent().find(".abo_add_years_text");
|
||||||
counter = Number(el.html());
|
counter = Number(el.html());
|
||||||
|
|
@ -86,7 +82,6 @@ $(document).ready(function () {
|
||||||
el_text.html("+" + counter + " Jahre");
|
el_text.html("+" + counter + " Jahre");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log("abos_to_buy: %o", abos_to_buy);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".abo_minus").click(function () {
|
$(".abo_minus").click(function () {
|
||||||
|
|
@ -111,8 +106,6 @@ $(document).ready(function () {
|
||||||
el_text.html("+" + counter + " Jahre");
|
el_text.html("+" + counter + " Jahre");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log("deveui: %s", deveui);
|
|
||||||
console.log("abos_to_buy: %o", abos_to_buy);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function add_years(dt, n) {
|
function add_years(dt, n) {
|
||||||
|
|
@ -120,7 +113,6 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
$(".abo_pay").click(function () {
|
$(".abo_pay").click(function () {
|
||||||
console.log(Object.keys(abos_to_buy).length);
|
|
||||||
if (Object.keys(abos_to_buy).length < 1) {
|
if (Object.keys(abos_to_buy).length < 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -131,9 +123,6 @@ $(document).ready(function () {
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
data: JSON.stringify(abos_to_buy),
|
data: JSON.stringify(abos_to_buy),
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
console.log("SUCCESS");
|
|
||||||
console.log(response.stripe_pk);
|
|
||||||
console.log(response.data);
|
|
||||||
if (stripe_pk == "") {
|
if (stripe_pk == "") {
|
||||||
stripe_pk = response['stripe_pk'];
|
stripe_pk = response['stripe_pk'];
|
||||||
loadStripeLibrary();
|
loadStripeLibrary();
|
||||||
|
|
@ -141,8 +130,6 @@ $(document).ready(function () {
|
||||||
HandleAbocostResponse(response['data']);
|
HandleAbocostResponse(response['data']);
|
||||||
},
|
},
|
||||||
error: function(xhr) {
|
error: function(xhr) {
|
||||||
console.log("ERROR");
|
|
||||||
console.log(xhr);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue