Mercurial > hg > soundsoftware-site
comparison plugins/redmine_bibliography/assets/javascripts/bibliography.js @ 1380:fa92d13876d0 luisf
Authorship Edit/Save buttons now working properly in the publication#new view.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Sat, 31 Aug 2013 18:36:57 +0100 |
parents | 1053a56bccec |
children | 5b8bd53fd65c |
comparison
equal
deleted
inserted
replaced
1379:1053a56bccec | 1380:fa92d13876d0 |
---|---|
3 function disable_fields(){ | 3 function disable_fields(){ |
4 $this = $(this); | 4 $this = $(this); |
5 $author_info = $this.closest('div').prev(); | 5 $author_info = $this.closest('div').prev(); |
6 $author_info.children('.description').toggle(); | 6 $author_info.children('.description').toggle(); |
7 $author_info.find('p :input').attr("readonly", true); | 7 $author_info.find('p :input').attr("readonly", true); |
8 $author_info.find('p :input').addClass('readonly'); | |
9 | |
10 $this.siblings('.author_edit_btn').show(); | |
11 $this.hide(); | |
8 | 12 |
9 return false; | 13 return false; |
10 } | 14 } |
15 | |
16 function enable_fields(){ | |
17 $this = $(this); | |
18 $author_info = $this.closest('div').prev(); | |
19 $author_info.children('.description').toggle(); | |
20 $author_info.find('p :input').attr("readonly", false); | |
21 $author_info.find('p :input').removeClass('readonly'); | |
22 | |
23 $this.siblings('.author_save_btn').show(); | |
24 $this.hide(); | |
25 | |
26 return false; | |
27 } |