wip javascript
This commit is contained in:
@@ -874,17 +874,17 @@
|
|||||||
<div id="formerrors"></div>
|
<div id="formerrors"></div>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input type="hidden" id="locale" name="locale" value="${currentLocale}" />
|
<input type="hidden" id="locale" name="locale" value="${currentLocale}" />
|
||||||
<legend><spring:message code="form.legend.loan.product.information"/></legend>
|
<legend>{{=$ctx.doI18N("form.legend.loan.product.information")}}</legend>
|
||||||
|
|
||||||
<label for="name"><spring:message code="form.label.loan.product.name"/></label>
|
<label for="name">{{=$ctx.doI18N("form.label.loan.product.name")}}</label>
|
||||||
<input id="name" name="name" type="text" title="" value="{{=name}}"/>
|
<input id="name" name="name" type="text" title="" value="{{=name}}"/>
|
||||||
|
|
||||||
<label for="description"><spring:message code="form.label.loan.product.description"/></label>
|
<label for="description">{{=$ctx.doI18N("form.label.loan.product.description")}}</label>
|
||||||
<textarea cols="73" rows="3" id="description" name="description" title="">{{=description}}</textarea>
|
<textarea cols="73" rows="3" id="description" name="description" title="">{{=description}}</textarea>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><spring:message code="form.legend.loan.product.currency"/></legend>
|
<legend>{{=$ctx.doI18N("form.legend.loan.product.currency")}}</legend>
|
||||||
<label for="currencyCode"><spring:message code="form.label.loan.product.currency"/></label>
|
<label for="currencyCode">{{=$ctx.doI18N("form.label.loan.product.currency")}}</label>
|
||||||
<select id="currencyCode" name="currencyCode" title="" style="width: 300px;">
|
<select id="currencyCode" name="currencyCode" title="" style="width: 300px;">
|
||||||
{{#each currencyOptions}}
|
{{#each currencyOptions}}
|
||||||
{{#if $parent.parent.data.principal.currencyCode===code}}
|
{{#if $parent.parent.data.principal.currencyCode===code}}
|
||||||
@@ -894,24 +894,24 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</select>
|
</select>
|
||||||
<label for="digitsAfterDecimal"><spring:message code="form.label.loan.product.decimalplaces"/></label>
|
<label for="digitsAfterDecimal">{{=$ctx.doI18N("form.label.loan.product.decimalplaces")}}</label>
|
||||||
<input id="digitsAfterDecimal" name="digitsAfterDecimal" title="" style="width: 300px;" value="{{=$ctx.number(principal.digitsAfterDecimal)}}" />
|
<input id="digitsAfterDecimal" name="digitsAfterDecimal" title="" style="width: 300px;" value="{{=$ctx.number(principal.digitsAfterDecimal)}}" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><spring:message code="form.legend.loan.product.loan.terms"/></legend>
|
<legend>{{=$ctx.doI18N("form.legend.loan.product.loan.terms")}}</legend>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" style="padding-right: 5px; border-right: 1px solid;">
|
<td valign="top" style="padding-right: 5px; border-right: 1px solid;">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><spring:message code="form.label.loan.product.loan.amount"/></td>
|
<td>{{=$ctx.doI18N("form.label.loan.product.loan.amount")}}</td>
|
||||||
<td>
|
<td>
|
||||||
<input id="principal" name="principal" title="" style="width: 125px;" value="{{=$ctx.money(principal)}}" />
|
<input id="principal" name="principal" title="" style="width: 125px;" value="{{=$ctx.money(principal)}}" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><spring:message code="form.label.loan.product.repaidevery"/></td>
|
<td>{{=$ctx.doI18N("form.label.loan.product.repaidevery")}}</td>
|
||||||
<td>
|
<td>
|
||||||
<input id="repaymentEvery" name="repaymentEvery" title="" style="width: 50px;" value="{{=$ctx.number(repaymentEvery)}}"/>
|
<input id="repaymentEvery" name="repaymentEvery" title="" style="width: 50px;" value="{{=$ctx.number(repaymentEvery)}}"/>
|
||||||
|
|
||||||
@@ -927,7 +927,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><spring:message code="form.label.loan.product.numberof.repayments"/></td>
|
<td>{{=$ctx.doI18N("form.label.loan.product.numberof.repayments")}}</td>
|
||||||
<td>
|
<td>
|
||||||
<input id="numberOfRepayments" name="numberOfRepayments" title="" style="width: 50px;" value="{{=$ctx.number(numberOfRepayments)}}"/>
|
<input id="numberOfRepayments" name="numberOfRepayments" title="" style="width: 50px;" value="{{=$ctx.number(numberOfRepayments)}}"/>
|
||||||
</td>
|
</td>
|
||||||
@@ -937,7 +937,7 @@
|
|||||||
<td valign="top" style="padding-left: 5px; padding-right: 5px; border-right: 1px solid;">
|
<td valign="top" style="padding-left: 5px; padding-right: 5px; border-right: 1px solid;">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><spring:message code="form.label.loan.product.nominal.interestrate"/></td>
|
<td>{{=$ctx.doI18N("form.label.loan.product.nominal.interestrate")}}</td>
|
||||||
<td>
|
<td>
|
||||||
<input id="interestRatePerPeriod" name="interestRatePerPeriod" title="" style="width: 70px;" value="{{=$ctx.decimal(interestRatePerPeriod, 4)}}" />
|
<input id="interestRatePerPeriod" name="interestRatePerPeriod" title="" style="width: 70px;" value="{{=$ctx.decimal(interestRatePerPeriod, 4)}}" />
|
||||||
|
|
||||||
@@ -953,7 +953,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><spring:message code="form.label.loan.product.amortization"/></td>
|
<td>{{=$ctx.doI18N("form.label.loan.product.amortization")}}</td>
|
||||||
<td>
|
<td>
|
||||||
<select id="amortizationType" name="amortizationType" title="" style="width: 220px;">
|
<select id="amortizationType" name="amortizationType" title="" style="width: 220px;">
|
||||||
{{#each amortizationTypeOptions}}
|
{{#each amortizationTypeOptions}}
|
||||||
@@ -967,7 +967,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><spring:message code="form.label.loan.product.interest.method"/></td>
|
<td>{{=$ctx.doI18N("form.label.loan.product.interest.method")}}</td>
|
||||||
<td>
|
<td>
|
||||||
<select id="interestType" name="interestType" title="" style="width: 220px;">
|
<select id="interestType" name="interestType" title="" style="width: 220px;">
|
||||||
{{#each interestTypeOptions}}
|
{{#each interestTypeOptions}}
|
||||||
@@ -981,7 +981,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><spring:message code="form.label.loan.product.interest.rate.calcutated.in.period"/></td>
|
<td>{{=$ctx.doI18N("form.label.loan.product.interest.rate.calcutated.in.period")}}</td>
|
||||||
<td>
|
<td>
|
||||||
<select id="interestCalculationPeriodType" name="interestCalculationPeriodType" title="" style="width: 220px;">
|
<select id="interestCalculationPeriodType" name="interestCalculationPeriodType" title="" style="width: 220px;">
|
||||||
{{#each interestCalculationPeriodTypeOptions}}
|
{{#each interestCalculationPeriodTypeOptions}}
|
||||||
@@ -995,7 +995,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><spring:message code="form.label.loan.product.arrears.tolerance"/></td>
|
<td>{{=$ctx.doI18N("form.label.loan.product.arrears.tolerance")}}</td>
|
||||||
<td>
|
<td>
|
||||||
<input id="inArrearsTolerance" name="inArrearsTolerance" title="" style="width: 215px;" value="{{=$ctx.money(inArrearsTolerance)}}" />
|
<input id="inArrearsTolerance" name="inArrearsTolerance" title="" style="width: 215px;" value="{{=$ctx.money(inArrearsTolerance)}}" />
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -43,6 +43,18 @@ function executeAjaxRequest(url, verbType, jsonData, basicAuthKey, successFuncti
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
highlightMissingXlations = "Y";
|
||||||
|
function doI18N(xlateStr, params) {
|
||||||
|
if (highlightMissingXlations == "Y") return jQuery.i18n.prop(xlateStr, params)
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var xlated = jQuery.i18n.prop(xlateStr, params);
|
||||||
|
if (xlated.substr(0,1) == "[" && xlated.substr(xlated.length - 1, 1) == "]") return xlated.substr(1, xlated.length - 2)
|
||||||
|
else return xlated;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function showILLogon(apiUrl, logonDivName) {
|
function showILLogon(apiUrl, logonDivName) {
|
||||||
|
|
||||||
var htmlVar = '<form name = "logonform"><table><tr><td>User Name:</td><td><input type="text" name="username"></td></tr>';
|
var htmlVar = '<form name = "logonform"><table><tr><td>User Name:</td><td><input type="text" name="username"></td></tr>';
|
||||||
@@ -109,15 +121,15 @@ function setOrgAdminContent(divName) {
|
|||||||
|
|
||||||
var htmlVar = '<div>';
|
var htmlVar = '<div>';
|
||||||
htmlVar += '<span style="float: left">';
|
htmlVar += '<span style="float: left">';
|
||||||
htmlVar += ' <a href="unknown.html" onclick="refreshLoanProductsView();return false;" id="viewloanproducts">View Products</a>';
|
htmlVar += ' <a href="unknown.html" onclick="refreshLoanProductsView();return false;" id="viewloanproducts">' + doI18N("administration.link.view.products") + '</a>';
|
||||||
htmlVar += '|';
|
htmlVar += ' | ';
|
||||||
htmlVar += ' <a href="#" id="addloanproduct">Add Product</a>';
|
htmlVar += ' <a href="#" id="addloanproduct">' + doI18N("administration.link.add.product") + '</a>';
|
||||||
htmlVar += '|';
|
htmlVar += ' | ';
|
||||||
htmlVar += ' <a href="#" id="viewoffices">View Offices</a>';
|
htmlVar += ' <a href="#" id="viewoffices">' + doI18N("administration.link.view.offices") + '</a>';
|
||||||
htmlVar += '|';
|
htmlVar += ' | ';
|
||||||
htmlVar += ' <a href="#" id="addoffice">Add Office</a>';
|
htmlVar += ' <a href="#" id="addoffice">' + doI18N("administration.link.add.office") + '</a>';
|
||||||
htmlVar += '|';
|
htmlVar += ' | ';
|
||||||
htmlVar += ' <a href="#" id="editconfiguration">Currency Configuration</a>';
|
htmlVar += ' <a href="#" id="editconfiguration">' + doI18N("administration.link.currency.configuration") + '</a>';
|
||||||
htmlVar += '</span>';
|
htmlVar += '</span>';
|
||||||
htmlVar += '</div>';
|
htmlVar += '</div>';
|
||||||
htmlVar += '<br><br>';
|
htmlVar += '<br><br>';
|
||||||
@@ -264,10 +276,14 @@ function jsViewsRegisterHelpers() {
|
|||||||
} catch(e) {
|
} catch(e) {
|
||||||
return "??";
|
return "??";
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
doI18N: function(xlateStr, params) {
|
||||||
|
try {
|
||||||
|
return doI18N(xlateStr, params);
|
||||||
|
} catch(e) {
|
||||||
|
return xlateStr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -325,7 +341,7 @@ function jsViewsRegisterHelpers() {
|
|||||||
argArrayIndex++;
|
argArrayIndex++;
|
||||||
});
|
});
|
||||||
// hardcoded support for six arguments
|
// hardcoded support for six arguments
|
||||||
errorObj.message = jQuery.i18n.prop(this.userMessageGlobalisationCode, argArray[0], argArray[1], argArray[2], argArray[3], argArray[4], argArray[5]);
|
errorObj.message = doI18N(this.userMessageGlobalisationCode, argArray[0], argArray[1], argArray[2], argArray[3], argArray[4], argArray[5]);
|
||||||
errorObj.value = this.value;
|
errorObj.value = this.value;
|
||||||
|
|
||||||
errorArray[arrayIndex] = errorObj;
|
errorArray[arrayIndex] = errorObj;
|
||||||
@@ -334,7 +350,7 @@ function jsViewsRegisterHelpers() {
|
|||||||
|
|
||||||
var templateArray = new Array();
|
var templateArray = new Array();
|
||||||
var templateErrorObj = new Object();
|
var templateErrorObj = new Object();
|
||||||
templateErrorObj.title = jQuery.i18n.prop('error.msg.header');
|
templateErrorObj.title = doI18N('error.msg.header');
|
||||||
templateErrorObj.errors = errorArray;
|
templateErrorObj.errors = errorArray;
|
||||||
|
|
||||||
templateArray[0] = templateErrorObj;
|
templateArray[0] = templateErrorObj;
|
||||||
@@ -348,15 +364,15 @@ function jsViewsRegisterHelpers() {
|
|||||||
function showNotAvailableDialog(titleCode) {
|
function showNotAvailableDialog(titleCode) {
|
||||||
var dialogDiv = $("<div id='notavailable-dialog-form'></div>");
|
var dialogDiv = $("<div id='notavailable-dialog-form'></div>");
|
||||||
|
|
||||||
dialogDiv.append("<p>" + jQuery.i18n.prop('dialog.messages.functionality.not.available') + "</p>");
|
dialogDiv.append("<p>" + doI18N('dialog.messages.functionality.not.available') + "</p>");
|
||||||
|
|
||||||
var okButton = jQuery.i18n.prop('dialog.button.ok');
|
var okButton = doI18N('dialog.button.ok');
|
||||||
|
|
||||||
var buttonsOpts = {};
|
var buttonsOpts = {};
|
||||||
buttonsOpts[okButton] = function() {$(this).dialog("close");};
|
buttonsOpts[okButton] = function() {$(this).dialog("close");};
|
||||||
|
|
||||||
dialogDiv.dialog({
|
dialogDiv.dialog({
|
||||||
title: jQuery.i18n.prop(titleCode),
|
title: doI18N(titleCode),
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 200,
|
height: 200,
|
||||||
modal: true,
|
modal: true,
|
||||||
@@ -406,8 +422,8 @@ function jsViewsRegisterHelpers() {
|
|||||||
var dialogDiv = $("<div id='dialog-form'></div>");
|
var dialogDiv = $("<div id='dialog-form'></div>");
|
||||||
var formHtml = $(templateSelector).render(data);
|
var formHtml = $(templateSelector).render(data);
|
||||||
dialogDiv.append(formHtml);
|
dialogDiv.append(formHtml);
|
||||||
var saveButton = jQuery.i18n.prop('dialog.button.save');
|
var saveButton = doI18N('dialog.button.save');
|
||||||
var cancelButton = jQuery.i18n.prop('dialog.button.cancel');
|
var cancelButton = doI18N('dialog.button.cancel');
|
||||||
|
|
||||||
var buttonsOpts = {};
|
var buttonsOpts = {};
|
||||||
buttonsOpts[saveButton] = function() {
|
buttonsOpts[saveButton] = function() {
|
||||||
@@ -430,7 +446,7 @@ function jsViewsRegisterHelpers() {
|
|||||||
buttonsOpts[cancelButton] = function() {$(this).dialog( "close" );};
|
buttonsOpts[cancelButton] = function() {$(this).dialog( "close" );};
|
||||||
|
|
||||||
dialogDiv.dialog({
|
dialogDiv.dialog({
|
||||||
title: jQuery.i18n.prop(titleCode),
|
title: doI18N(titleCode),
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
modal: true,
|
modal: true,
|
||||||
@@ -463,8 +479,8 @@ function jsViewsRegisterHelpers() {
|
|||||||
var formHtml = $(templateSelector).render(data);
|
var formHtml = $(templateSelector).render(data);
|
||||||
dialogDiv.append(formHtml);
|
dialogDiv.append(formHtml);
|
||||||
|
|
||||||
var saveButton = jQuery.i18n.prop('dialog.button.save');
|
var saveButton = doI18N('dialog.button.save');
|
||||||
var cancelButton = jQuery.i18n.prop('dialog.button.cancel');
|
var cancelButton = doI18N('dialog.button.cancel');
|
||||||
var buttonsOpts = {};
|
var buttonsOpts = {};
|
||||||
buttonsOpts[saveButton] = function() {
|
buttonsOpts[saveButton] = function() {
|
||||||
$('.multiSelectedItems option').each(function(i) {
|
$('.multiSelectedItems option').each(function(i) {
|
||||||
@@ -479,7 +495,7 @@ function jsViewsRegisterHelpers() {
|
|||||||
buttonsOpts[cancelButton] = function() {$(this).dialog( "close" );};
|
buttonsOpts[cancelButton] = function() {$(this).dialog( "close" );};
|
||||||
|
|
||||||
dialogDiv.dialog({
|
dialogDiv.dialog({
|
||||||
title: jQuery.i18n.prop(titleCode),
|
title: doI18N(titleCode),
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
modal: true,
|
modal: true,
|
||||||
@@ -505,10 +521,10 @@ function jsViewsRegisterHelpers() {
|
|||||||
}).dialog('open');
|
}).dialog('open');
|
||||||
}
|
}
|
||||||
function popupConfirmationDialogAndPost(url, submitType, titleCode, width, height, tabIndex, redirectUrl) {
|
function popupConfirmationDialogAndPost(url, submitType, titleCode, width, height, tabIndex, redirectUrl) {
|
||||||
var dialogDiv = $("<div id='dialog-form'><div id='formerrors'></div>" + jQuery.i18n.prop('text.confirmation.required') + "</div>");
|
var dialogDiv = $("<div id='dialog-form'><div id='formerrors'></div>" + doI18N('text.confirmation.required') + "</div>");
|
||||||
|
|
||||||
var confirmButton = jQuery.i18n.prop('dialog.button.confirm');
|
var confirmButton = doI18N('dialog.button.confirm');
|
||||||
var cancelButton = jQuery.i18n.prop('dialog.button.cancel');
|
var cancelButton = doI18N('dialog.button.cancel');
|
||||||
|
|
||||||
var buttonsOpts = {};
|
var buttonsOpts = {};
|
||||||
buttonsOpts[confirmButton] = function() {
|
buttonsOpts[confirmButton] = function() {
|
||||||
@@ -526,7 +542,7 @@ function jsViewsRegisterHelpers() {
|
|||||||
|
|
||||||
|
|
||||||
dialogDiv.dialog({
|
dialogDiv.dialog({
|
||||||
title: jQuery.i18n.prop(titleCode),
|
title: doI18N(titleCode),
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
modal: true,
|
modal: true,
|
||||||
@@ -639,7 +655,7 @@ function showILClient(baseApiUrl, clientId) {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('button.casflowbtn span').text(jQuery.i18n.prop('dialog.button.new.cashflow.analysis'));
|
$('button.casflowbtn span').text(doI18N('dialog.button.new.cashflow.analysis'));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$('.newloanbtn').button().click(function(e) {
|
$('.newloanbtn').button().click(function(e) {
|
||||||
@@ -648,7 +664,7 @@ function showILClient(baseApiUrl, clientId) {
|
|||||||
addILLoan(baseApiUrl, clientId);
|
addILLoan(baseApiUrl, clientId);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.newloanbtn span').text(jQuery.i18n.prop('dialog.button.new.loan.application'));
|
$('button.newloanbtn span').text(doI18N('dialog.button.new.loan.application'));
|
||||||
|
|
||||||
$('.addnotebtn').button().click(function(e) {
|
$('.addnotebtn').button().click(function(e) {
|
||||||
var linkId = this.id;
|
var linkId = this.id;
|
||||||
@@ -666,7 +682,7 @@ function showILClient(baseApiUrl, clientId) {
|
|||||||
popupDialogWithFormView("", postUrl, 'POST', "dialog.title.add.note", templateSelector, width, height, saveSuccessFunction);
|
popupDialogWithFormView("", postUrl, 'POST', "dialog.title.add.note", templateSelector, width, height, saveSuccessFunction);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.addnotebtn span').text(jQuery.i18n.prop('dialog.button.add.note'));
|
$('button.addnotebtn span').text(doI18N('dialog.button.add.note'));
|
||||||
|
|
||||||
refreshNoteWidget(clientUrl);
|
refreshNoteWidget(clientUrl);
|
||||||
|
|
||||||
@@ -712,7 +728,7 @@ function showILClient(baseApiUrl, clientId) {
|
|||||||
|
|
||||||
return 'var successFunction = function(data, textStatus, jqXHR) { ' +
|
return 'var successFunction = function(data, textStatus, jqXHR) { ' +
|
||||||
' var noteParent = new Object();' +
|
' var noteParent = new Object();' +
|
||||||
' noteParent.title = jQuery.i18n.prop("widget.notes.heading");' +
|
' noteParent.title = doI18N("widget.notes.heading");' +
|
||||||
' noteParent.notes = data;' +
|
' noteParent.notes = data;' +
|
||||||
' var tableHtml = $("#noteListViewTemplate").render(noteParent);' +
|
' var tableHtml = $("#noteListViewTemplate").render(noteParent);' +
|
||||||
' $("#clienttabrightpane").html(tableHtml);' +
|
' $("#clienttabrightpane").html(tableHtml);' +
|
||||||
@@ -815,13 +831,13 @@ function showILClient(baseApiUrl, clientId) {
|
|||||||
submitLoanApplication(clientId);
|
submitLoanApplication(clientId);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button#submitloanapp span').text(jQuery.i18n.prop('dialog.button.submit'));
|
$('button#submitloanapp span').text(doI18N('dialog.button.submit'));
|
||||||
|
|
||||||
$('#cancelloanapp').button().click(function(e) {
|
$('#cancelloanapp').button().click(function(e) {
|
||||||
showILClient(baseApiUrl, clientId);
|
showILClient(baseApiUrl, clientId);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button#cancelloanapp span').text(jQuery.i18n.prop('dialog.button.cancel'));
|
$('button#cancelloanapp span').text(doI18N('dialog.button.cancel'));
|
||||||
};
|
};
|
||||||
|
|
||||||
executeAjaxRequest(baseApiUrl + 'loans/template?clientId=' + clientId + '&productId=' + productId, 'GET', "", base64, successFunction, formErrorFunction);
|
executeAjaxRequest(baseApiUrl + 'loans/template?clientId=' + clientId + '&productId=' + productId, 'GET', "", base64, successFunction, formErrorFunction);
|
||||||
@@ -938,7 +954,7 @@ function loadILLoan(baseApiUrl, loanId) {
|
|||||||
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.reject.loan', templateSelector, width, height, saveSuccessFunctionReloadClient, offsetToSubmittedDate, defaultOffset, maxOffset);
|
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.reject.loan', templateSelector, width, height, saveSuccessFunctionReloadClient, offsetToSubmittedDate, defaultOffset, maxOffset);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.rejectloan span').text(jQuery.i18n.prop('dialog.button.reject.loan'));
|
$('button.rejectloan span').text(doI18N('dialog.button.reject.loan'));
|
||||||
|
|
||||||
$('.withdrawnbyapplicantloan').button().click(function(e) {
|
$('.withdrawnbyapplicantloan').button().click(function(e) {
|
||||||
var linkId = this.id;
|
var linkId = this.id;
|
||||||
@@ -951,7 +967,7 @@ function loadILLoan(baseApiUrl, loanId) {
|
|||||||
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.loan.withdrawn.by.client', templateSelector, width, height, saveSuccessFunctionReloadClient, offsetToSubmittedDate, defaultOffset, maxOffset)
|
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.loan.withdrawn.by.client', templateSelector, width, height, saveSuccessFunctionReloadClient, offsetToSubmittedDate, defaultOffset, maxOffset)
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.withdrawnbyapplicantloan span').text(jQuery.i18n.prop('dialog.button.withdrawn.by.client.loan'));
|
$('button.withdrawnbyapplicantloan span').text(doI18N('dialog.button.withdrawn.by.client.loan'));
|
||||||
|
|
||||||
$('.approveloan').button().click(function(e) {
|
$('.approveloan').button().click(function(e) {
|
||||||
|
|
||||||
@@ -965,7 +981,7 @@ function loadILLoan(baseApiUrl, loanId) {
|
|||||||
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.approve.loan', templateSelector, width, height, saveSuccessFunctionReloadLoan , offsetToSubmittedDate, defaultOffset, maxOffset)
|
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.approve.loan', templateSelector, width, height, saveSuccessFunctionReloadLoan , offsetToSubmittedDate, defaultOffset, maxOffset)
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.approveloan span').text(jQuery.i18n.prop('dialog.button.approve.loan'));
|
$('button.approveloan span').text(doI18N('dialog.button.approve.loan'));
|
||||||
|
|
||||||
$('.undoapproveloan').button().click(function(e) {
|
$('.undoapproveloan').button().click(function(e) {
|
||||||
|
|
||||||
@@ -979,7 +995,7 @@ function loadILLoan(baseApiUrl, loanId) {
|
|||||||
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.undo.loan.approval', templateSelector, width, height, saveSuccessFunctionReloadLoan , offsetToSubmittedDate, defaultOffset, maxOffset)
|
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.undo.loan.approval', templateSelector, width, height, saveSuccessFunctionReloadLoan , offsetToSubmittedDate, defaultOffset, maxOffset)
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.undoapproveloan span').text(jQuery.i18n.prop('dialog.button.undo.loan.approval'));
|
$('button.undoapproveloan span').text(doI18N('dialog.button.undo.loan.approval'));
|
||||||
|
|
||||||
$('.deleteloan').button().click(function(e) {
|
$('.deleteloan').button().click(function(e) {
|
||||||
var linkId = this.id;
|
var linkId = this.id;
|
||||||
@@ -993,7 +1009,7 @@ function loadILLoan(baseApiUrl, loanId) {
|
|||||||
popupConfirmationDialogAndPost(url, 'DELETE', 'dialog.title.confirmation.required', width, height, 0, redirectUrl);
|
popupConfirmationDialogAndPost(url, 'DELETE', 'dialog.title.confirmation.required', width, height, 0, redirectUrl);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.deleteloan span').text(jQuery.i18n.prop('dialog.button.delete.loan'));
|
$('button.deleteloan span').text(doI18N('dialog.button.delete.loan'));
|
||||||
|
|
||||||
$('.disburseloan').button().click(function(e) {
|
$('.disburseloan').button().click(function(e) {
|
||||||
|
|
||||||
@@ -1007,7 +1023,7 @@ function loadILLoan(baseApiUrl, loanId) {
|
|||||||
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.disburse.loan', templateSelector, width, height, saveSuccessFunctionReloadLoan , offsetToSubmittedDate, defaultOffset, maxOffset)
|
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.disburse.loan', templateSelector, width, height, saveSuccessFunctionReloadLoan , offsetToSubmittedDate, defaultOffset, maxOffset)
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.disburseloan span').text(jQuery.i18n.prop('dialog.button.disburse.loan'));
|
$('button.disburseloan span').text(doI18N('dialog.button.disburse.loan'));
|
||||||
|
|
||||||
$('.undodisbursalloan').button().click(function(e) {
|
$('.undodisbursalloan').button().click(function(e) {
|
||||||
|
|
||||||
@@ -1021,7 +1037,7 @@ function loadILLoan(baseApiUrl, loanId) {
|
|||||||
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.undo.loan.disbursal', templateSelector, width, height, saveSuccessFunctionReloadLoan , offsetToSubmittedDate, defaultOffset, maxOffset)
|
popupDialogWithPostOnlyFormView(postUrl, 'dialog.title.undo.loan.disbursal', templateSelector, width, height, saveSuccessFunctionReloadLoan , offsetToSubmittedDate, defaultOffset, maxOffset)
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$('button.undodisbursalloan span').text(jQuery.i18n.prop('dialog.button.undo.loan.disbursal'));
|
$('button.undodisbursalloan span').text(doI18N('dialog.button.undo.loan.disbursal'));
|
||||||
|
|
||||||
$('.repaymentloan').button().click(function(e) {
|
$('.repaymentloan').button().click(function(e) {
|
||||||
|
|
||||||
@@ -1039,7 +1055,7 @@ function loadILLoan(baseApiUrl, loanId) {
|
|||||||
//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(doI18N('dialog.button.loan.repayment'));
|
||||||
|
|
||||||
$('.waiveloan').button().click(function(e) {
|
$('.waiveloan').button().click(function(e) {
|
||||||
var linkId = this.id;
|
var linkId = this.id;
|
||||||
@@ -1061,7 +1077,7 @@ function loadILLoan(baseApiUrl, loanId) {
|
|||||||
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(doI18N('dialog.button.loan.waive'));
|
||||||
|
|
||||||
$('.adjustloanrepayment').button().click(function(e) {
|
$('.adjustloanrepayment').button().click(function(e) {
|
||||||
|
|
||||||
@@ -1085,7 +1101,7 @@ function loadILLoan(baseApiUrl, loanId) {
|
|||||||
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(doI18N('dialog.button.adjust.loan.repayment'));
|
||||||
|
|
||||||
// additional data
|
// additional data
|
||||||
var additionalFieldsParams = {
|
var additionalFieldsParams = {
|
||||||
|
|||||||
Reference in New Issue
Block a user