fix add note on individual lending appliction.
This commit is contained in:
+3
@@ -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/";
|
||||
|
||||
|
||||
+3
-2
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user