Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/ilovecveti.ru/bitrix/js/wbs24.ozonexport/ |
Upload File : |
document.addEventListener("DOMContentLoaded", function() { function isSuccessExport() { if (document.location.pathname == "/bitrix/admin/cat_export_setup.php") { let query = document.location.search; if (query.includes('success_export=Y')) { return true; } } return false; } function showWarningMessage(message) { let container = document.querySelector('.adm-toolbar-panel-container'); if (container) { let div = document.createElement('div'); div.innerHTML = message; container.before(div); } } async function getManualCallWarning() { let response = await fetch('/bitrix/tools/wbs24.ozonexport/ajax.php?ACTION=getManualCallWarning'); let message = ""; if (response.ok) { message = await response.text(); } return message; } async function init() { if (isSuccessExport()) { let message = await getManualCallWarning(); showWarningMessage(message); } } init(); });