Answer the question
In order to leave comments, you need to log in
How to add a button to the Bitrix model window?
There is a standard Bitrix modal window, I want to insert an additional one into it. a button that closes this window and brings up another, bootstrap one.
I found the code in the script, added the "1 click" button
if (this.config.showClosePopup)
{
popupButtons = [
new BasketButton({
text: BX.message('BTN_MESSAGE_BASKET_REDIRECT'),
events: {
click: BX.delegate(this.basketRedirect, this)
},
style: {marginRight: '10px'}
}),
new BasketButton({
text: BX.message('BTN_MESSAGE_CLOSE_POPUP'),
events: {
click: BX.delegate(this.obPopupWin.close, this.obPopupWin)
}
}),
new BasketButton({
text: '1 клик',
events: {
click: BX.delegate(this.obPopupWin.close, $('#oneclick').modal('show'))
}
})
];
}
click: BX.delegate(this.obPopupWin.close, $('#oneclick').modal('show'))
click: $('#oneclick').modal('show')
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