From 703a250bfca0f074dd0f58c8baf7baa2e2b48f43 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 7 Jul 2021 17:43:37 +0200 Subject: [PATCH] Removing debug code - everything worked when spelled correctly --- Site/Controls/v5/Base/DateTextBox.ascx | 5 ----- Site/Scripts/Swarmops-v5.js | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Site/Controls/v5/Base/DateTextBox.ascx b/Site/Controls/v5/Base/DateTextBox.ascx index af08eb62..6daa93d7 100644 --- a/Site/Controls/v5/Base/DateTextBox.ascx +++ b/Site/Controls/v5/Base/DateTextBox.ascx @@ -40,7 +40,6 @@ SwarmopsJS.ajaxCall('/Automation/Formatting.aspx/InterpretDateString', jsonData, function (data) { - console.log(data); if (data.Success) { $('#<%=this.ClientID%>_TextInput').val(data.PresentedDate); $('#<%=this.ClientID%>_InterpretedDate').val(data.InterpretedDate); @@ -49,10 +48,6 @@ $('#<%=this.ClientID%>_InterpretedDate').val(''); $('#<%=this.TextInput.ClientID%>').focus(); } - }, - function(data) { - console.log('ERROR'); - console.log(data); }); }); diff --git a/Site/Scripts/Swarmops-v5.js b/Site/Scripts/Swarmops-v5.js index 4bee3d6a..18c0ca11 100644 --- a/Site/Scripts/Swarmops-v5.js +++ b/Site/Scripts/Swarmops-v5.js @@ -441,11 +441,10 @@ var SwarmopsJS = (function () { contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { - console.log(msg); successFunction(msg.d); }, error: function (data) { - console.log(data); + console.log("Error in Ajax call: " + data); if (errorFunction !== undefined) { errorFunction(); } else {