{"action":"opened","issue":{"url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/288","labels_url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/288/comments","events_url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/288/events","html_url":"https://github.com/sachinchoolur/lightGallery/issues/288","id":130285748,"number":288,"title":"onCloseAfter does not work for Iframe","user":{"login":"zaheedk","id":16431384,"avatar_url":"https://avatars.githubusercontent.com/u/16431384?v=3","gravatar_id":"","url":"https://api.github.com/users/zaheedk","html_url":"https://github.com/zaheedk","followers_url":"https://api.github.com/users/zaheedk/followers","following_url":"https://api.github.com/users/zaheedk/following{/other_user}","gists_url":"https://api.github.com/users/zaheedk/gists{/gist_id}","starred_url":"https://api.github.com/users/zaheedk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaheedk/subscriptions","organizations_url":"https://api.github.com/users/zaheedk/orgs","repos_url":"https://api.github.com/users/zaheedk/repos","events_url":"https://api.github.com/users/zaheedk/events{/privacy}","received_events_url":"https://api.github.com/users/zaheedk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-01T07:46:03Z","updated_at":"2016-02-01T07:46:03Z","closed_at":null,"body":"Hi Sachin,\r\n\r\nI have recently started using your lightgallery plugin in one of my projects to serve up pages using iframe with lightgallery. Everything works fine except the function of onCloseAfter does not trigger. I am not sure if this function is supported for iframes?\r\n\r\nFollowing is my code\r\n\r\n$(\"#addlistingevent\").lightGallery({\r\n            selector: 'this',\r\n            iframeMaxWidth: '80%',\r\n            iframeMaxHeight: '80%',\r\n            onCloseAfter: function (event) {\r\n                alert('onCloseAfter : Executes immediately once Colorbox is closed;');\r\n                parent.location.reload(true);\r\n            }\r\n        });\r\n\r\nAny guidance/help is much appreciated.\r\n\r\nThanks\r\nZaheed"}}