# HG changeset patch # User luisf # Date 1381248397 -3600 # Node ID 2599a11ef11a7c2ceefdde909203cfb63993a477 # Parent 637ee26ae5574ae50d306eb156d47d46738e9d45 Fixes Bug #762 - was replacing the whole content of the span, including the tag itself (which was being used as the "anchor"). diff -r 637ee26ae557 -r 2599a11ef11a plugins/redmine_bibliography/assets/javascripts/authors.js --- a/plugins/redmine_bibliography/assets/javascripts/authors.js Wed Oct 02 16:52:56 2013 +0100 +++ b/plugins/redmine_bibliography/assets/javascripts/authors.js Tue Oct 08 17:06:37 2013 +0100 @@ -29,7 +29,7 @@ $this.closest('div').find("input[id$='search_author_id']").val(ui.item. search_author_id); $this.closest('div').find("input[id$='search_author_tie']").attr('checked', ' checked'); - $this.closest('div').find("input[id$='search_author_tie']").next('span'). replaceWith(ui.item.authorship_link); + $this.closest('div').find("input[id$='search_author_tie']").next('span').replaceWith("" + ui.item.authorship_link + ""); // triggers the save button $this.closest('div').next('div').find('.author_save_btn').click();