public_html/layouts/basic/modules/ServiceContracts/resources/Detail.js
Function onSubmit
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onSubmit(ev) {
ev.preventDefault();
ev.stopPropagation();
this.container.validationEngine(app.validationEngineOptions);
const policyType = Number(this.container.find('[name="policy_type"]:checked').val());
Function registerDelBtnClick
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerDelBtnClick(container) {
container.find('.js-delete-row-action').on('click', (e) => {
e.preventDefault();
e.stopPropagation();
const row = $(e.target).closest('.js-custom-row');