TimeTrex/interface/html5/views/payroll/remittance_wizard/PayrollRemittanceAgencyEventWizardController.js

35 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2022-12-13 07:10:06 +01:00
import { PayrollRemittanceAgencyEventWizard } from './PayrollRemittanceAgencyEventWizard';
export class PayrollRemittanceAgencyEventWizardController extends BaseWindowController {
constructor( options = {} ) {
_.defaults( options, {
el: '.wizard-bg',
wizard_obj: null
} );
super( options );
}
init() {
var wizard_id = 'PayrollRemittanceAgencyEventWizardController';
//LocalCacheData[this.wizard_id] is set when the wizard is minimized due to external navigation
if ( !this.wizard_obj && LocalCacheData[wizard_id] ) {
this.wizard_obj = LocalCacheData[wizard_id];
this.wizard_obj.remove();
this.wizard_obj.getStepObject().initialize( this.wizard_obj );
this.wizard_obj.init();
this.wizard_obj.setElement( $( '.tax_wizard' ) );
delete LocalCacheData[wizard_id];
} else {
//this.wizard_obj = new ( window[wizard_id] )( { el: $( '.tax_wizard' ) } );
this.wizard_obj = new PayrollRemittanceAgencyEventWizard( { el: $( '.tax_wizard' ) } );
}
}
// getRequiredFiles() {
// return ['Wizard', 'WizardStep', 'views/payroll/remittance_wizard/PayrollRemittanceAgencyEventWizard.js'];
// }
}