{"action":"created","issue":{"url":"https://api.github.com/repos/ncri/nested_form_fields/issues/33","labels_url":"https://api.github.com/repos/ncri/nested_form_fields/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/ncri/nested_form_fields/issues/33/comments","events_url":"https://api.github.com/repos/ncri/nested_form_fields/issues/33/events","html_url":"https://github.com/ncri/nested_form_fields/issues/33","id":69607628,"number":33,"title":"Get the link clicked in the fields_added.nested_form_fields event","user":{"login":"jensljungblad","id":271354,"avatar_url":"https://avatars.githubusercontent.com/u/271354?v=3","gravatar_id":"","url":"https://api.github.com/users/jensljungblad","html_url":"https://github.com/jensljungblad","followers_url":"https://api.github.com/users/jensljungblad/followers","following_url":"https://api.github.com/users/jensljungblad/following{/other_user}","gists_url":"https://api.github.com/users/jensljungblad/gists{/gist_id}","starred_url":"https://api.github.com/users/jensljungblad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensljungblad/subscriptions","organizations_url":"https://api.github.com/users/jensljungblad/orgs","repos_url":"https://api.github.com/users/jensljungblad/repos","events_url":"https://api.github.com/users/jensljungblad/events{/privacy}","received_events_url":"https://api.github.com/users/jensljungblad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-20T15:04:17Z","updated_at":"2015-04-20T18:21:11Z","closed_at":null,"body":"Would it be possible to get the original click event together with the `fields_added.nested_form_fields` event?\r\n\r\nI have two different `add_nested_fields_link` links, and I would like to know which one was clicked.\r\n\r\n```coffee\r\n$('body').on 'click', '.add_nested_fields_link', (originalEvent) ->\r\n  ...\r\n  $parsed_template.trigger(\"fields_added.nested_form_fields\", {object_class: object_class, added_index: added_index, association_path: association_path, originalEvent: originalEvent});\r\n```\r\n\r\nOr something like that\r\n"},"comment":{"url":"https://api.github.com/repos/ncri/nested_form_fields/issues/comments/94529600","html_url":"https://github.com/ncri/nested_form_fields/issues/33#issuecomment-94529600","issue_url":"https://api.github.com/repos/ncri/nested_form_fields/issues/33","id":94529600,"user":{"login":"ncri","id":16925,"avatar_url":"https://avatars.githubusercontent.com/u/16925?v=3","gravatar_id":"","url":"https://api.github.com/users/ncri","html_url":"https://github.com/ncri","followers_url":"https://api.github.com/users/ncri/followers","following_url":"https://api.github.com/users/ncri/following{/other_user}","gists_url":"https://api.github.com/users/ncri/gists{/gist_id}","starred_url":"https://api.github.com/users/ncri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncri/subscriptions","organizations_url":"https://api.github.com/users/ncri/orgs","repos_url":"https://api.github.com/users/ncri/repos","events_url":"https://api.github.com/users/ncri/events{/privacy}","received_events_url":"https://api.github.com/users/ncri/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T18:21:11Z","updated_at":"2015-04-20T18:21:11Z","body":"The event is triggered on the element added since this pull request:\r\n\r\nhttps://github.com/ncri/nested_form_fields/pull/31\r\n\r\nFrom that element you should be able to find the connected add_nested_fields_link."}}