diff --git a/Site/Pages/v5/Ledgers/EndOfMonth.aspx b/Site/Pages/v5/Ledgers/EndOfMonth.aspx index 21a29cef..889f7288 100644 --- a/Site/Pages/v5/Ledgers/EndOfMonth.aspx +++ b/Site/Pages/v5/Ledgers/EndOfMonth.aspx @@ -281,7 +281,7 @@ // Note that the function to call is selected dynamically! SwarmopsJS.ajaxCall( - "EndOfMonth.aspx/Upload" + itemType, + "/Pages/v5/Ledgers/EndOfMonth.aspx/Upload" + itemType, { guid: uploadGuid, itemId: activeUpload }, function(result) { if (result.Success) { @@ -308,6 +308,9 @@ // Todo: add more error handling later, maybe clientFailedUpload(); } + }, + function(error) { + clientFailedUpload(); }); }