Drabovskaya_T 1 Posted January 25, 2021 Report Share Posted January 25, 2021 Насколько я понимаю для добавления своего js скрипта мне нужно внести его в core_javascript и вызывать \IPS\Output::i()->jsFiles = array_merge( \IPS\Output::i()->jsFiles, \IPS\Output::i()->js( 'admin_unpaid.js', 'nexus', 'admin' ) ); или нужно что-то еще сделать мб есть тема или топик какой-то по работе с js в ips Обратиться Quote Link to comment Share on other sites More sharing options...
Павел 139 Posted January 25, 2021 Report Share Posted January 25, 2021 Здравствуйте. Всё верно, для подключения своего скрипта используется указанная вами конструкция. Обратиться Quote Link to comment Share on other sites More sharing options...
Drabovskaya_T 1 Posted January 25, 2021 Author Report Share Posted January 25, 2021 А можете подсказать сам скрипт при этом должен лежать в uploads или applications/my_app/dev/ ? Обратиться Quote Link to comment Share on other sites More sharing options...
Павел 139 Posted January 25, 2021 Report Share Posted January 25, 2021 Drabovskaya_T вот здесь об этом подробно написано. :) 1 Обратиться Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.