WIP javascript UI
This commit is contained in:
@@ -519,8 +519,7 @@
|
|||||||
{{#if makeRepaymentAllowed}}
|
{{#if makeRepaymentAllowed}}
|
||||||
<button id="repaymentbtn{{=$parent.parent.parent.data.id}}" class="repaymentloan">Make Repayment</button>
|
<button id="repaymentbtn{{=$parent.parent.parent.data.id}}" class="repaymentloan">Make Repayment</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
{{#if waiveAllowed}}
|
{{#if waiveAllowed}}
|
||||||
<button id="waivebtn{{=$parent.parent.parent.data.id}}" class="waiveloan">Waive</button>
|
<button id="waivebtn{{=$parent.parent.parent.data.id}}" class="waiveloan">Waive</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|||||||
@@ -969,7 +969,7 @@ function showILLoan(baseApiUrl, loanId, product) {
|
|||||||
});
|
});
|
||||||
$('button.undodisbursalloan span').text(jQuery.i18n.prop('dialog.button.undo.loan.disbursal'));
|
$('button.undodisbursalloan span').text(jQuery.i18n.prop('dialog.button.undo.loan.disbursal'));
|
||||||
|
|
||||||
$('.repaymentloan').button().click(function(e) {
|
$('.repaymentloan').button().click(function(e) {
|
||||||
|
|
||||||
var linkId = this.id;
|
var linkId = this.id;
|
||||||
var loanId = linkId.replace("repaymentbtn", "");
|
var loanId = linkId.replace("repaymentbtn", "");
|
||||||
@@ -990,10 +990,10 @@ function showILLoan(baseApiUrl, loanId, product) {
|
|||||||
popupDialogWithFormView(getUrl, postUrl, 'POST', "dialog.title.loan.repayment", templateSelector, width, height, saveSuccessFunction);
|
popupDialogWithFormView(getUrl, postUrl, 'POST', "dialog.title.loan.repayment", templateSelector, width, height, saveSuccessFunction);
|
||||||
//popupDialogWithFormView(getUrl, postUrl, 'POST', 'dialog.title.loan.repayment', templateSelector, width, height, currentTabIndex, offsetToSubmittedDate, defaultOffset, maxOffset)
|
//popupDialogWithFormView(getUrl, postUrl, 'POST', 'dialog.title.loan.repayment', templateSelector, width, height, currentTabIndex, offsetToSubmittedDate, defaultOffset, maxOffset)
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.repaymentloan span').text(jQuery.i18n.prop('dialog.button.loan.repayment'));
|
$('button.repaymentloan span').text(jQuery.i18n.prop('dialog.button.loan.repayment'));
|
||||||
|
|
||||||
$('.waiveloan').button().click(function(e) {
|
$('.waiveloan').button().click(function(e) {
|
||||||
var linkId = this.id;
|
var linkId = this.id;
|
||||||
var loanId = linkId.replace("waivebtn", "");
|
var loanId = linkId.replace("waivebtn", "");
|
||||||
|
|
||||||
@@ -1012,10 +1012,10 @@ function showILLoan(baseApiUrl, loanId, product) {
|
|||||||
|
|
||||||
popupDialogWithFormView(getUrl, postUrl, 'POST', "dialog.title.waive.loan", templateSelector, width, height, saveSuccessFunction);
|
popupDialogWithFormView(getUrl, postUrl, 'POST', "dialog.title.waive.loan", templateSelector, width, height, saveSuccessFunction);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.waiveloan span').text(jQuery.i18n.prop('dialog.button.loan.waive'));
|
$('button.waiveloan span').text(jQuery.i18n.prop('dialog.button.loan.waive'));
|
||||||
|
|
||||||
$('.adjustloanrepayment').button().click(function(e) {
|
$('.adjustloanrepayment').button().click(function(e) {
|
||||||
|
|
||||||
var linkId = this.id;
|
var linkId = this.id;
|
||||||
var loanAndRepaymentId = linkId.replace("adjustrepaymentbtn", "");
|
var loanAndRepaymentId = linkId.replace("adjustrepaymentbtn", "");
|
||||||
@@ -1036,11 +1036,11 @@ function showILLoan(baseApiUrl, loanId, product) {
|
|||||||
|
|
||||||
popupDialogWithFormView(getAndPostUrl, getAndPostUrl, 'POST', "dialog.title.adjust.loan.repayment", templateSelector, width, height, saveSuccessFunction);
|
popupDialogWithFormView(getAndPostUrl, getAndPostUrl, 'POST', "dialog.title.adjust.loan.repayment", templateSelector, width, height, saveSuccessFunction);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.adjustloanrepayment span').text(jQuery.i18n.prop('dialog.button.adjust.loan.repayment'));
|
$('button.adjustloanrepayment span').text(jQuery.i18n.prop('dialog.button.adjust.loan.repayment'));
|
||||||
|
|
||||||
// additional data
|
// additional data
|
||||||
var additionalFieldsParams = {
|
var additionalFieldsParams = {
|
||||||
url: baseApiUrl,
|
url: baseApiUrl,
|
||||||
basicAuthKey: base64,
|
basicAuthKey: base64,
|
||||||
datasetType: "portfolio_loan",
|
datasetType: "portfolio_loan",
|
||||||
@@ -1050,8 +1050,8 @@ function showILLoan(baseApiUrl, loanId, product) {
|
|||||||
headingClass: "",
|
headingClass: "",
|
||||||
labelClass: "longrowlabel",
|
labelClass: "longrowlabel",
|
||||||
valueClass: "rowvalue"
|
valueClass: "rowvalue"
|
||||||
};
|
};
|
||||||
jQuery.stretchyData.displayAllExtraData(additionalFieldsParams)
|
jQuery.stretchyData.displayAllExtraData(additionalFieldsParams)
|
||||||
};
|
};
|
||||||
|
|
||||||
executeAjaxRequest(loanUrl, 'GET', "", base64, successFunction, errorFunction);
|
executeAjaxRequest(loanUrl, 'GET', "", base64, successFunction, errorFunction);
|
||||||
|
|||||||
Reference in New Issue
Block a user