comparison plugins/redmine_bibliography/assets/javascripts/authors.js @ 1407:00a51e442fe9 biblio_alt_search_auth

Adds a "Keep associated with" checkbox to the authorship view.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 01 Oct 2013 12:00:45 +0100
parents 35732ac4324a
children 3cb633d4b37d
comparison
equal deleted inserted replaced
1406:20235e6c60c0 1407:00a51e442fe9
24 $this.closest('div').find("input[id$='institution']").val(ui.item.institution); 24 $this.closest('div').find("input[id$='institution']").val(ui.item.institution);
25 $this.closest('div').find("input[id$='email']").val(ui.item.email); 25 $this.closest('div').find("input[id$='email']").val(ui.item.email);
26 26
27 $this.closest('div').find("input[id$='search_author_class']").val(ui.item.search_author_class); 27 $this.closest('div').find("input[id$='search_author_class']").val(ui.item.search_author_class);
28 $this.closest('div').find("input[id$='search_author_id']").val(ui.item.search_author_id); 28 $this.closest('div').find("input[id$='search_author_id']").val(ui.item.search_author_id);
29
29 $this.closest('div').find("input[id$='search_author_tie']").attr('checked', 'checked'); 30 $this.closest('div').find("input[id$='search_author_tie']").attr('checked', 'checked');
31 $this.closest('div').find("input[id$='search_author_tie']").next('span').replaceWith(ui.item.authorship_link);
30 32
31 // triggers the save button 33 // triggers the save button
32 $this.closest('div').next('div').find('.author_save_btn').click(); 34 $this.closest('div').next('div').find('.author_save_btn').click();
33 } 35 }
34 }) 36 })