Mercurial > hg > soundsoftware-site
diff 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 |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/assets/javascripts/bibliography.js Sat Aug 31 17:57:33 2013 +0100 +++ b/plugins/redmine_bibliography/assets/javascripts/bibliography.js Sat Aug 31 18:36:57 2013 +0100 @@ -5,6 +5,23 @@ $author_info = $this.closest('div').prev(); $author_info.children('.description').toggle(); $author_info.find('p :input').attr("readonly", true); + $author_info.find('p :input').addClass('readonly'); + + $this.siblings('.author_edit_btn').show(); + $this.hide(); return false; -} \ No newline at end of file +} + +function enable_fields(){ + $this = $(this); + $author_info = $this.closest('div').prev(); + $author_info.children('.description').toggle(); + $author_info.find('p :input').attr("readonly", false); + $author_info.find('p :input').removeClass('readonly'); + + $this.siblings('.author_save_btn').show(); + $this.hide(); + + return false; +}