You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to access the current modal without having to track the modal states independently of the state tracking within the plugin.
This should be fairly easy to expose by adding a "getCurrent" method to $.modal which is a direct reference to the current "getCurrent" function.
$.modal.getCurrent=getCurrent;
Or, if you would rather not expose the modal instance itself you could add a "getCurrent" method to $.modal which wraps the current "getCurrent" function and return the modal instance's $elem only.
However this seems awkward as access to the $blocker and options would probably be useful as well. Also, this same result could currently be achieved with:
I would like to be able to access the current modal without having to track the modal states independently of the state tracking within the plugin.
This should be fairly easy to expose by adding a "getCurrent" method to $.modal which is a direct reference to the current "getCurrent" function.
Or, if you would rather not expose the modal instance itself you could add a "getCurrent" method to $.modal which wraps the current "getCurrent" function and return the modal instance's $elem only.
However this seems awkward as access to the $blocker and options would probably be useful as well. Also, this same result could currently be achieved with:
But that would get inefficient (relatively) if I needed to work through multiple, stacked modals.
The text was updated successfully, but these errors were encountered: