# HG changeset patch # User luisf # Date 1369156548 -3600 # Node ID b7af3c2d1f0c5032aef284d6758e1760da4f6c35 # Parent bb51e86fa1824d9bcc4c7afb03104d1ece8c3ca6 added a new js function to clear the author details fields diff -r bb51e86fa182 -r b7af3c2d1f0c plugins/redmine_bibliography/assets/javascripts/authors.js --- 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);