ui.dialog.beforeopen

Path: rsConf.cb.ui.dialog.beforeopen

Default: None

Description: Fires before any dialog (Settings, Text Mode, Translation, Dictionary, Download mp3, Error) is populated and displayed on the screen. The "this" keyword will refer to the container of the currently active player, which in most cases is the starting point of opening a dialog.

Example:

window.rsConf = {
    cb: {
        ui: {
            dialog: {
                beforeclose: function () {
                    doSomething();
                }
            }
        }
    }
};