Mercurial > hg > soundsoftware-site
changeset 1277:99fe7b784587 redmine-2.2-integration
Removed unused code (moved to show_bibtex_fields.js.erb view).
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 10 May 2013 11:53:01 +0100 |
parents | 20a6b12d1aba |
children | f8bb7ccc6fac |
files | plugins/redmine_bibliography/assets/javascripts/authors.js |
diffstat | 1 files changed, 6 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/assets/javascripts/authors.js Fri May 10 11:50:40 2013 +0100 +++ b/plugins/redmine_bibliography/assets/javascripts/authors.js Fri May 10 11:53:01 2013 +0100 @@ -20,24 +20,24 @@ s.value = ""; s.readOnly = false; }; - + if(status == "correct"){s.readOnly = false;}; if(status == "yes"){s.readOnly = true;}; }); } -function toggle_div(div_id){ +function toggle_div(div_id){ Effect.toggle(div_id, "appear", {duration:0.3}); } -function toggle_input_field(field){ +function toggle_input_field(field){ if (field.classNames().inspect().include("readonly") == false){ - field.readOnly = true; + field.readOnly = true; field.addClassName('readonly'); } else { field.readOnly = false; field.removeClassName('readonly'); - }; + }; } function toggle_edit_save_button(object_id){ @@ -58,19 +58,4 @@ }); toggle_edit_save_button(form_object_id); toggle_div("publication_authorships_attributes_" + form_object_id +"_search_author"); -} - -function hide_all_bibtex_required_fields(){$$('p.bibtex').each(function(s){s.hide()})} - -// entrytype_fields is a jsno array with the fields requires by the selected bibtex entry -function show_required_bibtex_fields(entrytype_fields) { - $$('p.bibtex').each(function(s){ - if(entrytype_fields.indexOf(s.down('input').id.split('_').last()) != -1){ - s.show(); - } - else { - s.hide(); - } - }) -} - \ No newline at end of file +} \ No newline at end of file