{"action":"created","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/23043","repository_url":"https://api.github.com/repos/twbs/bootstrap","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/23043/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/23043/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/23043/events","html_url":"https://github.com/twbs/bootstrap/issues/23043","id":241995112,"number":23043,"title":"modal not opening after first click ?","user":{"login":"ramintagizade","id":10652340,"avatar_url":"https://avatars2.githubusercontent.com/u/10652340?v=3","gravatar_id":"","url":"https://api.github.com/users/ramintagizade","html_url":"https://github.com/ramintagizade","followers_url":"https://api.github.com/users/ramintagizade/followers","following_url":"https://api.github.com/users/ramintagizade/following{/other_user}","gists_url":"https://api.github.com/users/ramintagizade/gists{/gist_id}","starred_url":"https://api.github.com/users/ramintagizade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramintagizade/subscriptions","organizations_url":"https://api.github.com/users/ramintagizade/orgs","repos_url":"https://api.github.com/users/ramintagizade/repos","events_url":"https://api.github.com/users/ramintagizade/events{/privacy}","received_events_url":"https://api.github.com/users/ramintagizade/received_events","type":"User","site_admin":false},"labels":[{"id":204889633,"url":"https://api.github.com/repos/twbs/bootstrap/labels/awaiting%20reply","name":"awaiting reply","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-11T10:09:02Z","updated_at":"2017-07-11T10:23:19Z","closed_at":null,"body":"\r\n\r\n    $(\".upload-test-container\").find('img').each(function(idx){\r\n        $(this).attr(\"id\",\"resImageID\"+idx.toString());\r\n        $(this).css('cursor','pointer');\r\n        $(this).on(\"click\",function(){\r\n          console.log(\"clicked \"+$(this).attr('id'));\r\n          get();\r\n          ImageClickedId = $(this).attr('id');\r\n        });\r\n     });\r\n     function get(){\r\n         $('.upload').modal('show');\r\n     }"},"comment":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/comments/314401617","html_url":"https://github.com/twbs/bootstrap/issues/23043#issuecomment-314401617","issue_url":"https://api.github.com/repos/twbs/bootstrap/issues/23043","id":314401617,"user":{"login":"alecpl","id":546788,"avatar_url":"https://avatars1.githubusercontent.com/u/546788?v=3","gravatar_id":"","url":"https://api.github.com/users/alecpl","html_url":"https://github.com/alecpl","followers_url":"https://api.github.com/users/alecpl/followers","following_url":"https://api.github.com/users/alecpl/following{/other_user}","gists_url":"https://api.github.com/users/alecpl/gists{/gist_id}","starred_url":"https://api.github.com/users/alecpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecpl/subscriptions","organizations_url":"https://api.github.com/users/alecpl/orgs","repos_url":"https://api.github.com/users/alecpl/repos","events_url":"https://api.github.com/users/alecpl/events{/privacy}","received_events_url":"https://api.github.com/users/alecpl/received_events","type":"User","site_admin":false},"created_at":"2017-07-11T10:23:19Z","updated_at":"2017-07-11T10:23:19Z","body":"Guessing that it is because the click is propagated to the body and this causes modal to be closed immediately. Try with event.stopPropagation()."}}
{"actor":{"display_login":"alecpl"}}