changeset 1427:2599a11ef11a biblio_alt_search_auth

Fixes Bug #762 - was replacing the whole content of the span, including the tag itself (which was being used as the "anchor").
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 08 Oct 2013 17:06:37 +0100
parents 637ee26ae557
children 2c723b9f5b87 a9cfc6dcfb83
files plugins/redmine_bibliography/assets/javascripts/authors.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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("<span>" + ui.item.authorship_link + "</span>");
 
                 // triggers the save button
                 $this.closest('div').next('div').find('.author_save_btn').click();