文件操作 - import-installer.js
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/rokpaw/public_html/wp-content/plugins/duplicator-pro/assets/js/import-installer.js
编辑文件内容
/*! dup import installer */ (function ($) { DupProImportInstaller = { installerIframe: $('#dpro-pro-import-installer-iframe'), preventUnlodaPage: false, init: function () { /* DupProImportInstaller.installerIframe.on("load", function () { DupProImportInstaller.resizeIframe(); }); setInterval(DupProImportInstaller.resizeIframe, 250); */ window.onbeforeunload = function () { if (DupProImportInstaller.preventUnlodaPage) { return "If you leave this page you will lose your unsaved changes."; } else { return; } }; DupProImportInstaller.installerIframe.on("load", function () { DupProImportInstaller.installerIframe.contents() .find('#page-step1') .on('click', '> .ui-dialog #db-install-dialog-confirm-button', function () { DupProImportInstaller.preventUnlodaPage = true; $('#dup-pro-import-installer-modal').removeClass('no-display'); }); }); }, resizeIframe: function () { let height = DupProImportInstaller.installerIframe.contents() .find('html').css('overflow', 'hidden') .outerHeight(true); console.log('height', height); DupProImportInstaller.installerIframe.css({ 'height': height + 'px' }) } } DupProImportInstaller.init(); DuplicatorTooltip.load(); })(jQuery);
修改文件时间
将文件时间修改为当前时间的前一年
删除文件