{"action":"created","issue":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6405","labels_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6405/labels{/name}","comments_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6405/comments","events_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6405/events","html_url":"https://github.com/wet-boew/wet-boew/issues/6405","id":53191371,"number":6405,"title":"Action / Confirm button in overlay","user":{"login":"soatley","id":9341961,"avatar_url":"https://avatars.githubusercontent.com/u/9341961?v=3","gravatar_id":"","url":"https://api.github.com/users/soatley","html_url":"https://github.com/soatley","followers_url":"https://api.github.com/users/soatley/followers","following_url":"https://api.github.com/users/soatley/following{/other_user}","gists_url":"https://api.github.com/users/soatley/gists{/gist_id}","starred_url":"https://api.github.com/users/soatley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soatley/subscriptions","organizations_url":"https://api.github.com/users/soatley/orgs","repos_url":"https://api.github.com/users/soatley/repos","events_url":"https://api.github.com/users/soatley/events{/privacy}","received_events_url":"https://api.github.com/users/soatley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wet-boew/wet-boew/labels/Plugin%3A+Lightbox","name":"Plugin: Lightbox","color":"006b75"},{"url":"https://api.github.com/repos/wet-boew/wet-boew/labels/Support+Request","name":"Support Request","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-12-31T16:31:32Z","updated_at":"2015-01-05T18:53:11Z","closed_at":null,"body":"How can I get an action button to work in an overlay? I'm using the Overlay to confirm changes before the page is submitted.  On the page, I have an anchor that opens the overlay and that works great.  A message and two buttons are provided to the user.  One to cancel and return (closes the modal overlay) and the other is an `<input type=\"submit\">` button. \r\n\r\nThe button can be clicked on but it doesn't go anywhere.  If I simulate a click using jQuery while the overlay is open, it doesn't do anything.  If I close the overlay and do the same thing, it works.  This leads me to believe that the button actions are trapped by some sort of JS.\r\n\r\nI'm looking for something similar to the session timeout buttons where clicking a button will work.\r\n\r\nLooking through the code to make the overlay it doesn't look like the clicks are trapped in there, but I may have missed something....\r\n\r\nThis code seems to work as a work around for me:\r\n\r\n````\r\n$(document).on(\"click vclick\", \".mfp-wrap [type=submit]\", function(event) {\r\n$.magnificPopup.close();\r\nevent.target.click()\r\n});\r\n````"},"comment":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/comments/68755994","html_url":"https://github.com/wet-boew/wet-boew/issues/6405#issuecomment-68755994","issue_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6405","id":68755994,"user":{"login":"soatley","id":9341961,"avatar_url":"https://avatars.githubusercontent.com/u/9341961?v=3","gravatar_id":"","url":"https://api.github.com/users/soatley","html_url":"https://github.com/soatley","followers_url":"https://api.github.com/users/soatley/followers","following_url":"https://api.github.com/users/soatley/following{/other_user}","gists_url":"https://api.github.com/users/soatley/gists{/gist_id}","starred_url":"https://api.github.com/users/soatley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soatley/subscriptions","organizations_url":"https://api.github.com/users/soatley/orgs","repos_url":"https://api.github.com/users/soatley/repos","events_url":"https://api.github.com/users/soatley/events{/privacy}","received_events_url":"https://api.github.com/users/soatley/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T18:53:11Z","updated_at":"2015-01-05T18:53:11Z","body":"Your way is much easier for me and saves having to modify the JS file.  Thanks for the tip! \r\n"}}