Answer the question
In order to leave comments, you need to log in
How to properly create a BX.CAdminDialog dialog box in your Bitrix module on the settings page?
Good evening. From the title of the question, it is clear that I am making my module on the Bitrix platform with certain settings. I also made options related to editing .php files by calling BX.CAdminDialog (modal window - where, in fact, the file is edited as an include area).
Screenshot with my module settings page and buttons to open BX.CAdminDialog: Screenshot
with open modal window BX.CAdminDialog:
Towards the end of the process of creating an option in the module settings, I had a problem when saving the file in the modal window, the inscription that appears on the top right (Loading...), does not disappear, but "hangs" indefinitely. Screenshot with this inscription:
Code of the button with the call to the BX.CAdminDialog-window:
<a class="adm-btn" href="javascript: new BX.CAdminDialog({'content_url':'/bitrix/admin/public_file_edit.php?site=s2&bxpublic=Y&from=includefile&templateID=TEMPLATE_NAME&path=.../include/address.php&lang=ru&subdialog=Y&siteTemplateId=TEMPLATE_NAME','width':'1009','height':'503'}).Show();" name="NAME_s2" title="Редактировать">Редактировать</a>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question