Mercurial > hg > soundsoftware-site
changeset 1293:b7af3c2d1f0c redmine-2.2-integration
added a new js function to clear the author details fields
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 21 May 2013 18:15:48 +0100 |
parents | bb51e86fa182 |
children | 0a574315af3e |
files | plugins/redmine_bibliography/assets/javascripts/authors.js |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/assets/javascripts/authors.js Tue May 21 18:12:13 2013 +0100 +++ b/plugins/redmine_bibliography/assets/javascripts/authors.js Tue May 21 18:15:48 2013 +0100 @@ -50,6 +50,12 @@ console.log("aaaa"); }); +$("input[id$='identify_author_no']").live("click", function() { + $this.closest('div').next().find("input[id$='name_on_paper']").val(''); + $this.closest('div').next().find("input[id$='institution']").val(''); + $this.closest('div').next().find("input[id$='email']").val(''); + $this.closest('div').next().find("input[id$='search_author_class']").val(''); +}); function toggle_div(div_id){ $("#" + div_id).toggle(0.3);