mercredi 15 juin 2016

Get options for jQuery modal


I'm using a modal dialog from this library: https://github.com/kylefox/jquery-modal. I'd like to get and/or update the options property of an open modal but couldn't see any built in way to do so.

As a workaround I added a function in the source like this:

$.modal.options = function() {
    return getCurrent().options;
}

This works but I'm wondering if there is already and existing method of doing this without adding that function.


Aucun commentaire:

Enregistrer un commentaire