Mercurial > hg > soundsoftware-site
changeset 606:63f92a52a4eb feature_36
Fixed bug in Edit/Save button behaviour.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 18 Aug 2011 17:15:39 +0100 |
parents | 8fc59e8ddd63 |
children | bdaabf6ee591 |
files | vendor/plugins/redmine_bibliography/assets/javascripts/authors.js |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/assets/javascripts/authors.js Thu Aug 18 16:32:39 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/assets/javascripts/authors.js Thu Aug 18 17:15:39 2011 +0100 @@ -28,10 +28,10 @@ } function toggle_input_field(field){ - if(field.readOnly == false){ + if(field.classNames().inspect().include("readonly") == false){ field.readOnly = true; field.addClassName('readonly').next('em').hide(); - } else{ + } else { field.readOnly = false; field.removeClassName('readonly').next('em').show(); };