I have popup window, not modal. How can I close this window by click on other part of page (not in window)?
Something like this:
function closeWin(e, t) {
    var el = win.getEl();
    if (!(el.dom === t || el.contains(t))) {
        Ext.getBody().un('click', closeWin);
        win.close();
    }
}
Ext.getBody().on('click', closeWin);
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With