Revision 1407:00a51e442fe9 plugins/redmine_bibliography/assets/javascripts
| plugins/redmine_bibliography/assets/javascripts/authors.js | ||
|---|---|---|
| 26 | 26 |
|
| 27 | 27 |
$this.closest('div').find("input[id$='search_author_class']").val(ui.item.search_author_class);
|
| 28 | 28 |
$this.closest('div').find("input[id$='search_author_id']").val(ui.item.search_author_id);
|
| 29 |
|
|
| 29 | 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 | 33 |
// triggers the save button |
| 32 | 34 |
$this.closest('div').next('div').find('.author_save_btn').click();
|
| plugins/redmine_bibliography/assets/javascripts/bibliography.js | ||
|---|---|---|
| 8 | 8 |
$author_info.find('p :input').attr("readonly", true);
|
| 9 | 9 |
$author_info.find('p :input').addClass('readonly');
|
| 10 | 10 |
|
| 11 |
// Always hides on save |
|
| 12 |
$this.closest('div').prev().find('p.search_author_tie').hide();
|
|
| 13 |
|
|
| 11 | 14 |
$this.siblings('.author_edit_btn').show();
|
| 12 | 15 |
$this.hide(); |
| 13 | 16 |
|
| ... | ... | |
| 22 | 25 |
$author_info.find('p :input').attr("readonly", false);
|
| 23 | 26 |
$author_info.find('p :input').removeClass('readonly');
|
| 24 | 27 |
|
| 28 |
// Always shows on edit |
|
| 29 |
$this.closest('div').prev().find('p.search_author_tie').show();
|
|
| 30 |
|
|
| 25 | 31 |
$this.siblings('.author_save_btn').show();
|
| 26 | 32 |
$this.hide(); |
| 27 | 33 |
|
Also available in: Unified diff