Задать вопрос
Ответы пользователя по тегу Битрикс24
  • Где прописать вызов метода BX.SidePanel.Instance.bindAnchors?

    toorr2p
    @toorr2p
    https://github.com/Cleverscript
    Почему то у меня при регистрации правил в расширении, в консоли вылетает 2 ошибки (хотя и слайдер открывается)

    1. slider-manager.js:786 BX.SitePanel: anchor rules were created in a different context. This might be a reason for a memory leak.
    2. Side Panel Wrapper: do not use an old toolbar.


    (function () {
        BX.namespace('Sliderinfo');
    
        BX.Sliderinfo = {
            init: function () {
                BX.SidePanel.Instance.bindAnchors({
                    rules: [
                        {
                            condition: ["/test/info/(\\d+)/"],
                            options: {
                                width: 980
                            },
                        }
                    ]
                });
            }
        }
    
        BX.Sliderinfo.init();
    })();
    Ответ написан