From 4c9bd309b49b4ef1428b47b3015c7d29d00764d5 Mon Sep 17 00:00:00 2001 From: Keith Woodlock Date: Mon, 2 Jul 2012 18:08:04 +0100 Subject: [PATCH] fix add note on individual lending appliction. --- .../InMemoryApplicationConfigurationService.java | 3 +++ .../main/webapp/WEB-INF/views/client/viewClientAccount.jsp | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mifosng-individual-lending-app/src/main/java/org/mifosng/configuration/InMemoryApplicationConfigurationService.java b/mifosng-individual-lending-app/src/main/java/org/mifosng/configuration/InMemoryApplicationConfigurationService.java index e75d6ce06..f434a09df 100644 --- a/mifosng-individual-lending-app/src/main/java/org/mifosng/configuration/InMemoryApplicationConfigurationService.java +++ b/mifosng-individual-lending-app/src/main/java/org/mifosng/configuration/InMemoryApplicationConfigurationService.java @@ -10,6 +10,9 @@ public class InMemoryApplicationConfigurationService implements ApplicationConfi // demo url // private String platformApiUrl = "https://ec2-46-137-62-163.eu-west-1.compute.amazonaws.com:8443/mifosng-provider/api/v1/"; + +// private String platformApiUrl = "https://ec2-176-34-172-61.eu-west-1.compute.amazonaws.com:8443/mifosng-provider/api/v1/"; + // dev url private String platformApiUrl = "https://localhost:8443/mifosng-provider/api/v1/"; diff --git a/mifosng-individual-lending-app/src/main/webapp/WEB-INF/views/client/viewClientAccount.jsp b/mifosng-individual-lending-app/src/main/webapp/WEB-INF/views/client/viewClientAccount.jsp index a6cc4075b..553fec665 100644 --- a/mifosng-individual-lending-app/src/main/webapp/WEB-INF/views/client/viewClientAccount.jsp +++ b/mifosng-individual-lending-app/src/main/webapp/WEB-INF/views/client/viewClientAccount.jsp @@ -491,7 +491,8 @@ $(document).ready(function() { $('.addnotebtn').button().click(function(e) { var linkId = this.id; var clientId = linkId.replace("addnotebtn", ""); - var getAndPostUrl = baseApiUrl + 'clients/' + clientId + '/notes'; + var getUrl = baseApiUrl + 'clients/' + clientId; + var postUrl = baseApiUrl + 'clients/' + clientId + '/notes'; var templateSelector = "#noteFormTemplate"; var width = 600; @@ -502,7 +503,7 @@ $(document).ready(function() { refreshNoteWidget(); } - popupDialogWithFormView(getAndPostUrl, getAndPostUrl, 'POST', "dialog.title.add.note", templateSelector, width, height, saveSuccessFunction); + popupDialogWithFormView(getUrl, postUrl, 'POST', "dialog.title.add.note", templateSelector, width, height, saveSuccessFunction); e.preventDefault(); }); $('button.addnotebtn span').text(jQuery.i18n.prop('dialog.button.add.note'));