From 9927f9f2ec47d93e0754b241bd843c9cdf53128e Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 25 Apr 2018 11:41:23 +0200 Subject: [PATCH] Dumbfix --- Site/Pages/v5/Ledgers/UploadBankFiles.aspx | 31 ++++++++++------------ 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/Site/Pages/v5/Ledgers/UploadBankFiles.aspx b/Site/Pages/v5/Ledgers/UploadBankFiles.aspx index a70c281d..194d5bbd 100644 --- a/Site/Pages/v5/Ledgers/UploadBankFiles.aspx +++ b/Site/Pages/v5/Ledgers/UploadBankFiles.aspx @@ -24,24 +24,21 @@ }); function onAccountChange(newAccountId) { - $('#<%=DropAccounts.ClientID %>').change(function() { + if (newAccountId != 0) { + $('#<%=this.UploadFile.ClientID %>_ButtonUploadVisible').fadeIn(); - if (newAccountId != 0) { - $('#<%=this.UploadFile.ClientID %>_ButtonUploadVisible').fadeIn(); - - SwarmopsJS.ajaxCall( - "/Pages/v5/Ledgers/UploadBankFiles.aspx/GetAutomationProfileName", - { - guid: guid, accountId: newAccountId - }, - function(result) { - $('#SpanInstructions').text(result.DisplayMessage); - }); - } else { - $('#<%=this.UploadFile.ClientID %>_ButtonUploadVisible').fadeOut(); - $('#SpanInstructions').text(""); - } - }); + SwarmopsJS.ajaxCall( + "/Pages/v5/Ledgers/UploadBankFiles.aspx/GetAutomationProfileName", + { + guid: guid, accountId: newAccountId + }, + function(result) { + $('#SpanInstructions').text(result.DisplayMessage); + }); + } else { + $('#<%=this.UploadFile.ClientID %>_ButtonUploadVisible').fadeOut(); + $('#SpanInstructions').text(""); + } } function uploadCompletedCallback() {