jquery-modal
jquery-modal copied to clipboard
The simplest possible modal for jQuery
bodyScroll option lets user to keep body scrolling. Useful when clicked a button below the first screen.
Hey folks, Thanks for the solid modal plugin. Just sharing a solution to an issue I had when working with text input fields in a modal form. This only came...
Since the plugin handles only one modal at a time, the need may arise to have one `modal:close` trigger another `modal:open` in order to implement state management. Here's an example:...
Usage: ``` js $('#ajax-link').on('modal:ajax:fail',function(event,jqXHR,textStatus,errorThrown){ //analyze here why ajax failed }); ```
When a long enough fadeDuration is used for opening a modal, opening, closing, and then re-opening the dialog quickly enough can leave the dialog opened, but in an unblocked state....
When opening a modal with ajax content the standard modal events are triggered on a newly created div, but that is not useful as they can't be catched, the events...
I believe this fixes #46. I recently had the same issue. Explained in 727e6e1.
My team sometimes imports libraries on their standalone pages that are already in a master page (they forget to look). With jquery.modal this causes an issue when trying to hit...
I am using the following approach import $ from 'jquery'; import 'jquery-modal'; When opening jquery-modal using data target , methods inside modal working fine. ` My Profile` But when opening...
Hi There, Have been trying many things but can't get this event to fire? Code: $('iframe').on($.modal.BEFORE_CLOSE , function (event, modal) { var video = $("iframe").attr("src"); $("iframe").attr("src",""); $("iframe").attr("src",video); console.log('test'); });