75 lines
2.0 KiB
JavaScript
75 lines
2.0 KiB
JavaScript
|
$(document).ready(function() {
|
||
|
$('#tblPicDtl').dataTable({
|
||
|
"dom": 't<"bottom"p><"clear">', "language": {
|
||
|
"paginate": {
|
||
|
"next": "Next",
|
||
|
"previous": "Previous"
|
||
|
},
|
||
|
"infoEmpty": ""
|
||
|
}, "fnDrawCallback": function(oSettings) { processRowNum(oSettings); hidePagination(this, "#tblPicDtl"); }
|
||
|
});
|
||
|
$('#tblCompanyAddress').dataTable({
|
||
|
"dom": 't<"bottom"p><"clear">', "language": {
|
||
|
"paginate": {
|
||
|
"next": "Next",
|
||
|
"previous": "Previous"
|
||
|
},
|
||
|
"infoEmpty": ""
|
||
|
}, "fnDrawCallback": function(oSettings) { processRowNum(oSettings); hidePagination(this, "#tblCompanyAddress"); }
|
||
|
});
|
||
|
|
||
|
$('#submitBtnId').click(function() {
|
||
|
document.getElementById("lblStatusRequired").style.display = "none";
|
||
|
// document.getElementById("lblRemarksRequired").style.display = "none";
|
||
|
|
||
|
var status = $("input[name='appStatus']:checked").val();
|
||
|
|
||
|
$("#sponsorAddError").text("");
|
||
|
|
||
|
if (status == undefined) {
|
||
|
document.getElementById("lblStatusRequired").style.display = null;
|
||
|
return;
|
||
|
}
|
||
|
if (status =='REJ') {
|
||
|
/*if(document.getElementById("regRemarksId").value == ''){
|
||
|
document.getElementById("lblRemarksRequired").style.display = null;
|
||
|
return;
|
||
|
}*/
|
||
|
|
||
|
}
|
||
|
document.getElementById('dqFormId').submit();
|
||
|
});
|
||
|
|
||
|
if ($("#remarks").length > 0) {
|
||
|
tinymce.init({
|
||
|
selector: "textarea#remarks",
|
||
|
theme: "modern",
|
||
|
height: 100,
|
||
|
menubar: ' ',
|
||
|
});
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
function submitForm() {
|
||
|
|
||
|
document.getElementById("lblStatusRequired").style.display = "none";
|
||
|
// document.getElementById("lblRemarksRequired").style.display = "none";
|
||
|
|
||
|
var status = $("input[name='appStatus']:checked").val();
|
||
|
|
||
|
$("#sponsorAddError").text("");
|
||
|
|
||
|
if (status == undefined) {
|
||
|
document.getElementById("lblStatusRequired").style.display = null;
|
||
|
return;
|
||
|
}
|
||
|
if (status == 'REJ') {
|
||
|
/*if(document.getElementById("regRemarksId").value == ''){
|
||
|
document.getElementById("lblRemarksRequired").style.display = null;
|
||
|
return;
|
||
|
}*/
|
||
|
|
||
|
}
|
||
|
document.getElementById('dqFormId').submit();
|
||
|
}
|