add('
'); $oPage->add_ready_script( <<<'JS' $("#use-symbolic-links").on("click", function() { var $this = $(this), bUseSymbolicLinks = $this.prop("checked"); var sAuthent = $('#authent_token').val(); var oAjaxParams = { operation: 'toggle_use_symbolic_links', bUseSymbolicLinks: bUseSymbolicLinks, authent: sAuthent}; $.post(GetAbsoluteUrlAppRoot()+'setup/ajax.dataloader.php', oAjaxParams); }); JS ); } } final protected function AddForceUninstallFlagOption(WebPage $oPage): void { $sChecked = $this->oWizard->GetParameter('force-uninstall', false) ? ' checked ' : ''; $oPage->add(''); $oPage->add_ready_script( <<<'JS' $("#force-uninstall").on("click", function() { let $this = $(this); let bForceUninstall = $this.prop("checked"); if( bForceUninstall && !confirm('Beware, uninstalling extensions flagged as non uninstallable may result in data corruption and application crashes. Are you sure you want to continue ?')){ $this.prop("checked",false); } }); JS ); } }