You can clone button and add onclick then (from the script). You do not
have to pass _this_ as argument: in events handler _this_ is active element
.

Pozdrawiam,
Mateusz Pszczółka.


2014-04-28 9:16 GMT+02:00 zeuko <notifications@github.com>:

> In app/views/copyright/consent.scala.html:
>
> >      </style>
> >
> > +    <button type="button" class="btn btn-default" id="remove-author" onclick="removeButton($(this))">
>
> It works when element has 'id' attribute. I did adding this button to form
> the same way you wrote adding new author - by cloning the button and
> removing id. I think jquery script won't work in this case.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/tilius/io-article-manager/pull/2/files#r12036914>
> .
>