diff --git a/local/js/otus/ctimeman/config.php b/local/js/otus/ctimeman/config.php new file mode 100644 index 0000000..de8e6b6 --- /dev/null +++ b/local/js/otus/ctimeman/config.php @@ -0,0 +1,15 @@ + './src/script.js', + 'css' => './src/style.css', + 'rel' => [ + 'main.core', // Требуется для BX.create, BX.PreventDefault, BX.message + 'main.popup', // Требуется для BX.PopupWindow + 'ui.buttons', // Для стилей кнопок ui-btn + ], + 'lang' => './lang/ru/script.php', // Файл локализации + 'skip_core' => false, // Не пропускать ядро Bitrix +]; \ No newline at end of file diff --git a/local/js/otus/ctimeman/lang/ru/script.php b/local/js/otus/ctimeman/lang/ru/script.php new file mode 100644 index 0000000..3c3ef4e --- /dev/null +++ b/local/js/otus/ctimeman/lang/ru/script.php @@ -0,0 +1,17 @@ +addEventHandlerCompatible('main', 'OnPageStart', '\Otus\Event\Main::handlerPageStart'); @@ -10,4 +12,10 @@ 'Otus\UserType\OnlineRecord', 'GetUserTypeDescription' ] +); + +$eventManager->addEventHandler( + 'main', + 'OnProlog', + [Main::class, 'OnProlog'] ); \ No newline at end of file