{"action":"created","issue":{"url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/82","labels_url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/82/comments","events_url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/82/events","html_url":"https://github.com/mkhairi/materialize-sass/issues/82","id":127600490,"number":82,"title":"How to check modal is opening","user":{"login":"hellovietnam93","id":8023606,"avatar_url":"https://avatars.githubusercontent.com/u/8023606?v=3","gravatar_id":"","url":"https://api.github.com/users/hellovietnam93","html_url":"https://github.com/hellovietnam93","followers_url":"https://api.github.com/users/hellovietnam93/followers","following_url":"https://api.github.com/users/hellovietnam93/following{/other_user}","gists_url":"https://api.github.com/users/hellovietnam93/gists{/gist_id}","starred_url":"https://api.github.com/users/hellovietnam93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellovietnam93/subscriptions","organizations_url":"https://api.github.com/users/hellovietnam93/orgs","repos_url":"https://api.github.com/users/hellovietnam93/repos","events_url":"https://api.github.com/users/hellovietnam93/events{/privacy}","received_events_url":"https://api.github.com/users/hellovietnam93/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-20T04:16:14Z","updated_at":"2016-01-20T07:19:44Z","closed_at":null,"body":"When i open a modal, how can i can check it is being open. Something like \r\n\r\n```\r\n$(document).on(\"show.bs.modal\", \"#modal1\", function (event) {\r\n    console.log(\"ok\");\r\n   });\r\n```"},"comment":{"url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/comments/173116058","html_url":"https://github.com/mkhairi/materialize-sass/issues/82#issuecomment-173116058","issue_url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/82","id":173116058,"user":{"login":"mkhairi","id":7901659,"avatar_url":"https://avatars.githubusercontent.com/u/7901659?v=3","gravatar_id":"","url":"https://api.github.com/users/mkhairi","html_url":"https://github.com/mkhairi","followers_url":"https://api.github.com/users/mkhairi/followers","following_url":"https://api.github.com/users/mkhairi/following{/other_user}","gists_url":"https://api.github.com/users/mkhairi/gists{/gist_id}","starred_url":"https://api.github.com/users/mkhairi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkhairi/subscriptions","organizations_url":"https://api.github.com/users/mkhairi/orgs","repos_url":"https://api.github.com/users/mkhairi/repos","events_url":"https://api.github.com/users/mkhairi/events{/privacy}","received_events_url":"https://api.github.com/users/mkhairi/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T07:19:44Z","updated_at":"2016-01-20T07:19:44Z","body":"see http://materializecss.com/modals.html#options\r\n\r\n```javascript\r\n  $('.modal-trigger').leanModal({\r\n      dismissible: true, // Modal can be dismissed by clicking outside of the modal\r\n      opacity: .5, // Opacity of modal background\r\n      in_duration: 300, // Transition in duration\r\n      out_duration: 200, // Transition out duration\r\n      ready: function() { alert('Ready'); }, // Callback for Modal open\r\n      complete: function() { alert('Closed'); } // Callback for Modal close\r\n    }\r\n  );\r\n```"}}