{"action":"created","issue":{"url":"https://api.github.com/repos/mistic100/Bootstrap-Confirmation/issues/52","repository_url":"https://api.github.com/repos/mistic100/Bootstrap-Confirmation","labels_url":"https://api.github.com/repos/mistic100/Bootstrap-Confirmation/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/mistic100/Bootstrap-Confirmation/issues/52/comments","events_url":"https://api.github.com/repos/mistic100/Bootstrap-Confirmation/issues/52/events","html_url":"https://github.com/mistic100/Bootstrap-Confirmation/issues/52","id":194621702,"number":52,"title":"Only works after refresh","user":{"login":"sabre96","id":15867250,"avatar_url":"https://avatars.githubusercontent.com/u/15867250?v=3","gravatar_id":"","url":"https://api.github.com/users/sabre96","html_url":"https://github.com/sabre96","followers_url":"https://api.github.com/users/sabre96/followers","following_url":"https://api.github.com/users/sabre96/following{/other_user}","gists_url":"https://api.github.com/users/sabre96/gists{/gist_id}","starred_url":"https://api.github.com/users/sabre96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabre96/subscriptions","organizations_url":"https://api.github.com/users/sabre96/orgs","repos_url":"https://api.github.com/users/sabre96/repos","events_url":"https://api.github.com/users/sabre96/events{/privacy}","received_events_url":"https://api.github.com/users/sabre96/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-09T15:21:27Z","updated_at":"2016-12-09T15:26:04Z","closed_at":null,"body":"When I go to the page with the confirm script in it and press the button it doesnt work, but after refreshing it does... please help. using latest bootstrap and laravel.\r\n\r\n```\r\n`@push('scripts')\r\n<script>\r\n    $(document).ready(function () {\r\n        $('[data-toggle=confirmation]').confirmation({\r\n            rootSelector: '[data-toggle=confirmation]',\r\n            onConfirm:    function () {\r\n                window.location.href = '/settings/delete';\r\n            }\r\n        });\r\n    });\r\n</script>\r\n@endpush`\r\n```\r\n\r\n`<button class=\"btn btn-danger\" data-toggle=\"confirmation\"\r\n                                data-btn-ok-label=\"Delete\" data-btn-ok-icon=\"fa fa-fw fa-trash\"\r\n                                data-btn-ok-class=\"btn-danger\" data-bt-cancel-label=\"Stop\"\r\n                                data-btn-cancel-icon=\"fa fa-fw fa-close\" data-btn-cancel-class=\"btn-info\"\r\n                                data-title=\"Delete account\" data-content=\"Are you sure?\"\r\n                                data-placement=\"bottom\" data-popout=\"true\">\r\n                            Delete account\r\n                        </button>`\r\n\r\n```\r\n`<!-- jQuery -->\r\n<script src=\"https://code.jquery.com/jquery-1.12.3.js\"></script>\r\n\r\n<!-- DataTables -->\r\n<script src=\"https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js\"></script>\r\n<script src=\"https://cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js\"></script>\r\n\r\n<!-- Bootstrap -->\r\n<script src=\"/libs/jquery/tether/dist/js/tether.min.js\"></script>\r\n<script src=\"/libs/jquery/bootstrap/dist/js/bootstrap.js\"></script>\r\n<script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js\" integrity=\"sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa\" crossorigin=\"anonymous\"></script>\r\n<script src=\"/js/scripts/plugins/bootstrap-confirmation.min.js\"></script>`\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mistic100/Bootstrap-Confirmation/issues/comments/266040378","html_url":"https://github.com/mistic100/Bootstrap-Confirmation/issues/52#issuecomment-266040378","issue_url":"https://api.github.com/repos/mistic100/Bootstrap-Confirmation/issues/52","id":266040378,"user":{"login":"mistic100","id":41597,"avatar_url":"https://avatars.githubusercontent.com/u/41597?v=3","gravatar_id":"","url":"https://api.github.com/users/mistic100","html_url":"https://github.com/mistic100","followers_url":"https://api.github.com/users/mistic100/followers","following_url":"https://api.github.com/users/mistic100/following{/other_user}","gists_url":"https://api.github.com/users/mistic100/gists{/gist_id}","starred_url":"https://api.github.com/users/mistic100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistic100/subscriptions","organizations_url":"https://api.github.com/users/mistic100/orgs","repos_url":"https://api.github.com/users/mistic100/repos","events_url":"https://api.github.com/users/mistic100/events{/privacy}","received_events_url":"https://api.github.com/users/mistic100/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T15:26:04Z","updated_at":"2016-12-09T15:26:04Z","body":"And please use triple back quote with language name when posting code"}}
{"actor":{"display_login":"mistic100"}}