E
E
EvgenyJozef30002019-02-20 18:25:46
1C-Bitrix
EvgenyJozef3000, 2019-02-20 18:25:46

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
5003c4a801.png
with open modal window BX.CAdminDialog:
726222415d.png
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:
4a23a05cad.png
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&amp;bxpublic=Y&amp;from=includefile&amp;templateID=TEMPLATE_NAME&amp;path=.../include/address.php&amp;lang=ru&amp;subdialog=Y&amp;siteTemplateId=TEMPLATE_NAME','width':'1009','height':'503'}).Show();" name="NAME_s2" title="Редактировать">Редактировать</a>

Please help me figure it out. The inscription (Loading...) on the output should disappear by itself after saving the file.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question