{"action":"created","issue":{"url":"https://api.github.com/repos/joaopereirawd/animatedModal.js/issues/12","labels_url":"https://api.github.com/repos/joaopereirawd/animatedModal.js/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/joaopereirawd/animatedModal.js/issues/12/comments","events_url":"https://api.github.com/repos/joaopereirawd/animatedModal.js/issues/12/events","html_url":"https://github.com/joaopereirawd/animatedModal.js/issues/12","id":102291426,"number":12,"title":"Open Modal from Javascript","user":{"login":"murray484","id":6455740,"avatar_url":"https://avatars.githubusercontent.com/u/6455740?v=3","gravatar_id":"","url":"https://api.github.com/users/murray484","html_url":"https://github.com/murray484","followers_url":"https://api.github.com/users/murray484/followers","following_url":"https://api.github.com/users/murray484/following{/other_user}","gists_url":"https://api.github.com/users/murray484/gists{/gist_id}","starred_url":"https://api.github.com/users/murray484/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murray484/subscriptions","organizations_url":"https://api.github.com/users/murray484/orgs","repos_url":"https://api.github.com/users/murray484/repos","events_url":"https://api.github.com/users/murray484/events{/privacy}","received_events_url":"https://api.github.com/users/murray484/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-21T03:47:23Z","updated_at":"2015-08-27T16:54:50Z","closed_at":null,"body":"What would the best way be to open the modal programmatically from within a javascript function (ie. instead of clicking a link to open the modal, you could tell it to open from within your javascript code)?"},"comment":{"url":"https://api.github.com/repos/joaopereirawd/animatedModal.js/issues/comments/135491996","html_url":"https://github.com/joaopereirawd/animatedModal.js/issues/12#issuecomment-135491996","issue_url":"https://api.github.com/repos/joaopereirawd/animatedModal.js/issues/12","id":135491996,"user":{"login":"natecox","id":2782695,"avatar_url":"https://avatars.githubusercontent.com/u/2782695?v=3","gravatar_id":"","url":"https://api.github.com/users/natecox","html_url":"https://github.com/natecox","followers_url":"https://api.github.com/users/natecox/followers","following_url":"https://api.github.com/users/natecox/following{/other_user}","gists_url":"https://api.github.com/users/natecox/gists{/gist_id}","starred_url":"https://api.github.com/users/natecox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natecox/subscriptions","organizations_url":"https://api.github.com/users/natecox/orgs","repos_url":"https://api.github.com/users/natecox/repos","events_url":"https://api.github.com/users/natecox/events{/privacy}","received_events_url":"https://api.github.com/users/natecox/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T16:54:50Z","updated_at":"2015-08-27T16:54:50Z","body":"+1 for this. Currently it seems that you set a callback on an existing dom element which then opens the modal in the future. It'd be nice to be able to just do so directly."}}