Сегодня столкнулся со странным багом:
Получаю аяксом html и делаю
Код: Выделить всё
$(result.html).modal({onClose:function(){...}}).open();
Позже вышел из ситуации так
Код: Выделить всё
$.modal({onOpen:function(el){el.html(result.html)}}).open();
Код: Выделить всё
$(result.html).modal({onClose:function(){...}}).open();
Код: Выделить всё
$.modal({onOpen:function(el){el.html(result.html)}}).open();
Код: Выделить всё
$.modal({
onClose: function (overlay, localOptions) {
/** ... */
}
});