Mercurial > hg > soundsoftware-site
view plugins/redmine_bibliography/assets/javascripts/bibliography.js @ 1381:5b8bd53fd65c cannam
Merge from luisf branch
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 05 Sep 2013 16:50:10 +0100 |
parents | 8516c3292901 fa92d13876d0 |
children | 0f918e37e1d6 |
line wrap: on
line source
// bibliography.js function disable_fields(){ $this = $(this); $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; } 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; }