Debug testing

This commit is contained in:
Rick Falkvinge
2018-04-25 16:08:00 +02:00
parent 883f20db85
commit d7451841d7
+16 -12
View File
@@ -23,8 +23,7 @@
});
function onAccountChange(newAccountId) {
alert(newAccountId);
function onAccountChange(oldAccountId, newAccountId) {
if (newAccountId != 0) {
$('#<%=this.UploadFile.ClientID %>_ButtonUploadVisible').fadeIn();
@@ -50,16 +49,21 @@
$('#DivProcessingFake').slideUp(); // in case second, third... file
halfway = false;
$.ajax({
type: "POST",
url: "/Pages/v5/Ledgers/UploadBankFiles.aspx/InitializeProcessing",
data: "{'guid': '<%= this.UploadFile.GuidString %>', 'accountIdString':'" + $('#<%= this.DropAccounts.ClientID %>').val() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
setTimeout('updateProgressProcessing();', 1000);
}
});
var selectedAccountId = <%=this.DropAccounts.ClientID%>_val();
alert(selectedAccountId);
return; // debug code
SwarmopsJS.ajaxCall (
"/Pages/v5/Ledgers/UploadBankFiles.aspx/InitializeProcessing",
{ guid: guid, accountId: selectedAccountId },
function (result) {
if (result.Success)
{
setTimeout('updateProgressProcessing();', 1000);
}
}
);
}
function updateProgressProcessing() {