{"action":"created","issue":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6933","labels_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6933/labels{/name}","comments_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6933/comments","events_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6933/events","html_url":"https://github.com/wet-boew/wet-boew/issues/6933","id":94316809,"number":6933,"title":"How to close lightbox overlay through javascript","user":{"login":"jfbourgon","id":1030226,"avatar_url":"https://avatars.githubusercontent.com/u/1030226?v=3","gravatar_id":"","url":"https://api.github.com/users/jfbourgon","html_url":"https://github.com/jfbourgon","followers_url":"https://api.github.com/users/jfbourgon/followers","following_url":"https://api.github.com/users/jfbourgon/following{/other_user}","gists_url":"https://api.github.com/users/jfbourgon/gists{/gist_id}","starred_url":"https://api.github.com/users/jfbourgon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfbourgon/subscriptions","organizations_url":"https://api.github.com/users/jfbourgon/orgs","repos_url":"https://api.github.com/users/jfbourgon/repos","events_url":"https://api.github.com/users/jfbourgon/events{/privacy}","received_events_url":"https://api.github.com/users/jfbourgon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wet-boew/wet-boew/labels/Plugin:%20Lightbox","name":"Plugin: Lightbox","color":"006b75"},{"url":"https://api.github.com/repos/wet-boew/wet-boew/labels/Support%20Request","name":"Support Request","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-10T14:24:19Z","updated_at":"2015-07-10T16:22:56Z","closed_at":null,"body":"I'm able to open modal inline content throught javascript using the following code\r\n```javascript\r\n$document.trigger( \"open.wb-lbx\", [\r\n\t\t\t[\r\n\t\t\t\t{\r\n\t\t\t\t\tsrc: \"#inline_content_modal\",\r\n\t\t\t\t\ttype: \"inline\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\ttrue\r\n\t\t]);\r\n```\r\nI'm wondering how I could also invoke closing of the opened overlay throught javascript."},"comment":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/comments/120450485","html_url":"https://github.com/wet-boew/wet-boew/issues/6933#issuecomment-120450485","issue_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/6933","id":120450485,"user":{"login":"jfbourgon","id":1030226,"avatar_url":"https://avatars.githubusercontent.com/u/1030226?v=3","gravatar_id":"","url":"https://api.github.com/users/jfbourgon","html_url":"https://github.com/jfbourgon","followers_url":"https://api.github.com/users/jfbourgon/followers","following_url":"https://api.github.com/users/jfbourgon/following{/other_user}","gists_url":"https://api.github.com/users/jfbourgon/gists{/gist_id}","starred_url":"https://api.github.com/users/jfbourgon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfbourgon/subscriptions","organizations_url":"https://api.github.com/users/jfbourgon/orgs","repos_url":"https://api.github.com/users/jfbourgon/repos","events_url":"https://api.github.com/users/jfbourgon/events{/privacy}","received_events_url":"https://api.github.com/users/jfbourgon/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T16:22:56Z","updated_at":"2015-07-10T16:22:56Z","body":"Here is the testing code I put up so far. This should cause the dialog to open on WET initialization and then being instantly closed once ready (this is not exactly the behaviour I'm looking for but this would be a good starting point). In my case, the `wb-ready.wb-lbx` event is never invoked.\r\n```javascript\r\n$( document ).on( \"wb-ready.wb\", function( event ) {   \r\n    $( document ).trigger( \"open.wb-lbx\", [\r\n        [\r\n            {\r\n                src: \"#loading-pane\",\r\n                type: \"inline\"\r\n            }\r\n        ],\r\n        true\r\n    ] );\r\n});\r\n\r\n$( document ).on( \"wb-ready.wb-lbx\", function( event ) {\r\n    $.magnificPopup.close();\r\n});\r\n```"}}