{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2715","repository_url":"https://api.github.com/repos/angular-ui/bootstrap","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2715/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2715/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2715/events","html_url":"https://github.com/angular-ui/bootstrap/issues/2715","id":43066895,"number":2715,"title":"A way to intercept tab change","user":{"login":"DmitryEfimenko","id":2098175,"avatar_url":"https://avatars.githubusercontent.com/u/2098175?v=3","gravatar_id":"","url":"https://api.github.com/users/DmitryEfimenko","html_url":"https://github.com/DmitryEfimenko","followers_url":"https://api.github.com/users/DmitryEfimenko/followers","following_url":"https://api.github.com/users/DmitryEfimenko/following{/other_user}","gists_url":"https://api.github.com/users/DmitryEfimenko/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryEfimenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryEfimenko/subscriptions","organizations_url":"https://api.github.com/users/DmitryEfimenko/orgs","repos_url":"https://api.github.com/users/DmitryEfimenko/repos","events_url":"https://api.github.com/users/DmitryEfimenko/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryEfimenko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component:%20tab","name":"component: tab","color":"ffffff"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/type:%20enhancement","name":"type: enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular-ui/bootstrap/milestones/9","html_url":"https://github.com/angular-ui/bootstrap/milestones/1.0.0","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/milestones/9/labels","id":528366,"number":9,"title":"1.0.0","description":"Rewrite in ES6","creator":{"login":"chrisirhc","id":132584,"avatar_url":"https://avatars.githubusercontent.com/u/132584?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisirhc","html_url":"https://github.com/chrisirhc","followers_url":"https://api.github.com/users/chrisirhc/followers","following_url":"https://api.github.com/users/chrisirhc/following{/other_user}","gists_url":"https://api.github.com/users/chrisirhc/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisirhc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisirhc/subscriptions","organizations_url":"https://api.github.com/users/chrisirhc/orgs","repos_url":"https://api.github.com/users/chrisirhc/repos","events_url":"https://api.github.com/users/chrisirhc/events{/privacy}","received_events_url":"https://api.github.com/users/chrisirhc/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":292,"state":"closed","created_at":"2014-01-07T00:22:46Z","updated_at":"2016-01-08T19:27:45Z","due_on":null,"closed_at":"2016-01-08T19:27:45Z"},"comments":12,"created_at":"2014-09-17T21:55:52Z","updated_at":"2016-02-15T08:25:17Z","closed_at":"2015-11-07T17:04:44Z","body":"Hello,\r\n\r\nI need a way to intercept a tab change. Here is a situation where such functionality would be useful:\r\n\r\nI have two tabs. Each has a form inside. The requirement is that if form in the current tab becomes `dirty`, I need to show a popup message and depending on which option user chooses ((1) \"save changes\", (2) \"discard changes\", (3) \"cancel\") I should either (1) save and switch tab, (2) don't save and switch tab, or (3) don't save and stay on current tab.\r\n\r\nPlease let me know if that functionality already exists. If it does not, what approach do you think would be most suitable?"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/184109240","html_url":"https://github.com/angular-ui/bootstrap/issues/2715#issuecomment-184109240","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2715","id":184109240,"user":{"login":"usher99","id":7482940,"avatar_url":"https://avatars.githubusercontent.com/u/7482940?v=3","gravatar_id":"","url":"https://api.github.com/users/usher99","html_url":"https://github.com/usher99","followers_url":"https://api.github.com/users/usher99/followers","following_url":"https://api.github.com/users/usher99/following{/other_user}","gists_url":"https://api.github.com/users/usher99/gists{/gist_id}","starred_url":"https://api.github.com/users/usher99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usher99/subscriptions","organizations_url":"https://api.github.com/users/usher99/orgs","repos_url":"https://api.github.com/users/usher99/repos","events_url":"https://api.github.com/users/usher99/events{/privacy}","received_events_url":"https://api.github.com/users/usher99/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T08:25:17Z","updated_at":"2016-02-15T08:25:17Z","body":"This Workaround (@larvanitis ) is not compatible with actual released version.\r\nI adapted the original code and it works fine in order to this Workaround. \r\n\r\nBut how can i include a workaround.js file with this, to overwrite the original functionality?"}}