comparison plugins/redmine_bibliography/assets/javascripts/bibliography.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 0f918e37e1d6
children
comparison
equal deleted inserted replaced
1406:20235e6c60c0 1407:00a51e442fe9
5 5
6 $author_info = $this.closest('div').prev(); 6 $author_info = $this.closest('div').prev();
7 // $author_info.children('.description').toggle(); 7 // $author_info.children('.description').toggle();
8 $author_info.find('p :input').attr("readonly", true); 8 $author_info.find('p :input').attr("readonly", true);
9 $author_info.find('p :input').addClass('readonly'); 9 $author_info.find('p :input').addClass('readonly');
10
11 // Always hides on save
12 $this.closest('div').prev().find('p.search_author_tie').hide();
10 13
11 $this.siblings('.author_edit_btn').show(); 14 $this.siblings('.author_edit_btn').show();
12 $this.hide(); 15 $this.hide();
13 16
14 return false; 17 return false;
20 $author_info = $this.closest('div').prev(); 23 $author_info = $this.closest('div').prev();
21 // $author_info.children('.description').toggle(); 24 // $author_info.children('.description').toggle();
22 $author_info.find('p :input').attr("readonly", false); 25 $author_info.find('p :input').attr("readonly", false);
23 $author_info.find('p :input').removeClass('readonly'); 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 $this.siblings('.author_save_btn').show(); 31 $this.siblings('.author_save_btn').show();
26 $this.hide(); 32 $this.hide();
27 33
28 return false; 34 return false;
29 } 35 }