wip javascript

This commit is contained in:
John Woodlock
2012-07-06 18:06:08 +10:00
parent cf7e00a685
commit 0e5fa6385d
@@ -1197,8 +1197,9 @@ function loadILLoan(loanId) {
var width = 500; var width = 500;
var height = 350; var height = 350;
var defaultOffset = offsetToApprovalDate; var defaultOffset = offsetToApprovalDate;
eval(genSaveSuccessFunctionReloadLoan(loanId));
popupDialogWithFormView(getUrl, postUrl, 'POST', "dialog.title.loan.repayment", templateSelector, width, height, saveSuccessFunction); popupDialogWithFormView(getUrl, postUrl, 'POST', "dialog.title.loan.repayment", templateSelector, width, height, saveSuccessFunctionReloadLoan);
//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();
}); });
@@ -1216,12 +1217,9 @@ function loadILLoan(loanId) {
var height = 350; var height = 350;
var defaultOffset = offsetToApprovalDate; var defaultOffset = offsetToApprovalDate;
var saveSuccessFunction = function(data, textStatus, jqXHR) { eval(genSaveSuccessFunctionReloadLoan(loanId));
$("#dialog-form").dialog("close");
$newtabs.tabs('load', currentTabIndex);
}
popupDialogWithFormView(getUrl, postUrl, 'POST', "dialog.title.waive.loan", templateSelector, width, height, saveSuccessFunction); popupDialogWithFormView(getUrl, postUrl, 'POST', "dialog.title.waive.loan", templateSelector, width, height, saveSuccessFunctionReloadLoan);
e.preventDefault(); e.preventDefault();
}); });
$('button.waiveloan span').text(doI18N('dialog.button.loan.waive')); $('button.waiveloan span').text(doI18N('dialog.button.loan.waive'));
@@ -1240,12 +1238,8 @@ function loadILLoan(loanId) {
var height = 350; var height = 350;
var defaultOffset = offsetToApprovalDate; var defaultOffset = offsetToApprovalDate;
var saveSuccessFunction = function(data, textStatus, jqXHR) { eval(genSaveSuccessFunctionReloadLoan(loanId));
$("#dialog-form").dialog("close"); popupDialogWithFormView(getAndPostUrl, getAndPostUrl, 'POST', "dialog.title.adjust.loan.repayment", templateSelector, width, height, saveSuccessFunctionReloadLoan);
loadILLoan(loanId);
}
popupDialogWithFormView(getAndPostUrl, getAndPostUrl, 'POST', "dialog.title.adjust.loan.repayment", templateSelector, width, height, saveSuccessFunction);
e.preventDefault(); e.preventDefault();
}); });
$('button.adjustloanrepayment span').text(doI18N('dialog.button.adjust.loan.repayment')); $('button.adjustloanrepayment span').text(doI18N('dialog.button.adjust.loan.repayment'));