fix add note on individual lending appliction.

This commit is contained in:
Keith Woodlock
2012-07-02 18:08:04 +01:00
parent 542a969634
commit 4c9bd309b4
2 changed files with 6 additions and 2 deletions
@@ -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/";
@@ -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'));