{"action":"created","issue":{"url":"https://api.github.com/repos/tavicu/bs-confirmation/issues/14","labels_url":"https://api.github.com/repos/tavicu/bs-confirmation/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/tavicu/bs-confirmation/issues/14/comments","events_url":"https://api.github.com/repos/tavicu/bs-confirmation/issues/14/events","html_url":"https://github.com/tavicu/bs-confirmation/issues/14","id":71313963,"number":14,"title":"The library breaks the normal behaviour for a <a> link without confirmation enabled","user":{"login":"tristanbes","id":346010,"avatar_url":"https://avatars.githubusercontent.com/u/346010?v=3","gravatar_id":"","url":"https://api.github.com/users/tristanbes","html_url":"https://github.com/tristanbes","followers_url":"https://api.github.com/users/tristanbes/followers","following_url":"https://api.github.com/users/tristanbes/following{/other_user}","gists_url":"https://api.github.com/users/tristanbes/gists{/gist_id}","starred_url":"https://api.github.com/users/tristanbes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristanbes/subscriptions","organizations_url":"https://api.github.com/users/tristanbes/orgs","repos_url":"https://api.github.com/users/tristanbes/repos","events_url":"https://api.github.com/users/tristanbes/events{/privacy}","received_events_url":"https://api.github.com/users/tristanbes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tavicu/bs-confirmation/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-27T15:16:02Z","updated_at":"2015-10-18T03:07:05Z","closed_at":"2015-07-14T08:19:00Z","body":"Hi,\r\n\r\nGiven this following DOM: \r\n```html\r\n<a href=\"/admin.php/8/faq/1/plan/list class=\"btn btn-default btn-cons btn-notification-style m-b-10 text-success\"\">faq.manage.plan</a>\r\n```\r\n\r\nWhen using this follwoing JS code:\r\n\r\n```js\r\n$(document).ready(function () {\r\n    $('body').confirmation({\r\n        selector: '[data-toggle=\"confirmation\"]',\r\n        btnOkLabel: (typeof confirmationBtnOkLabel !== 'undefined') ? confirmationBtnOkLabel : \"interface.delete\",\r\n        btnCancelLabel: (typeof confirmationBtnCancelLabel !== 'undefined') ? confirmationBtnCancelLabel : \"interface.cancel\",\r\n        onConfirm: function(event, element) {\r\n            window.location.href = element.attr('href');\r\n        }\r\n    });\r\n```\r\n\r\nIt results in the impossibility to click on the link or any other link. We click, and nothing happens, as if the redirection was prohibed by the plugin. (Once again, it shouldn't interefeer since the link doesn't have the proper selector)\r\n\r\nRemoving the JS code and the `a` link is working again.\r\n\r\nUsing jquery 1.11"},"comment":{"url":"https://api.github.com/repos/tavicu/bs-confirmation/issues/comments/148973082","html_url":"https://github.com/tavicu/bs-confirmation/issues/14#issuecomment-148973082","issue_url":"https://api.github.com/repos/tavicu/bs-confirmation/issues/14","id":148973082,"user":{"login":"jancinert","id":5624510,"avatar_url":"https://avatars.githubusercontent.com/u/5624510?v=3","gravatar_id":"","url":"https://api.github.com/users/jancinert","html_url":"https://github.com/jancinert","followers_url":"https://api.github.com/users/jancinert/followers","following_url":"https://api.github.com/users/jancinert/following{/other_user}","gists_url":"https://api.github.com/users/jancinert/gists{/gist_id}","starred_url":"https://api.github.com/users/jancinert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jancinert/subscriptions","organizations_url":"https://api.github.com/users/jancinert/orgs","repos_url":"https://api.github.com/users/jancinert/repos","events_url":"https://api.github.com/users/jancinert/events{/privacy}","received_events_url":"https://api.github.com/users/jancinert/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T03:07:05Z","updated_at":"2015-10-18T03:07:05Z","body":"tristanbes:\r\nsee https://github.com/tavicu/bs-confirmation/issues/16#issuecomment-148966244"}}