Mercurial > hg > soundsoftware-site
comparison plugins/redmine_bibliography/assets/javascripts/edit_publication.js @ 1389:641ec1b288a6 luisf
Added two new js scripts to initialize views (simulate clicks and adding events to buttons).
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 Sep 2013 17:43:16 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1388:cfa9122bb584 | 1389:641ec1b288a6 |
---|---|
1 // edit_publication.js | |
2 | |
3 $(document).ready(function(){ | |
4 // shows the correct bibtex fields | |
5 $('#publication_bibtex_entry_attributes_entry_type').trigger('change'); | |
6 | |
7 // adds the events to the edit/save authorship button | |
8 $('.author_save_btn').live('click', disable_fields); | |
9 $('.author_edit_btn').live('click', enable_fields); | |
10 | |
11 // clicks all authorships | |
12 $('.author_save_btn').trigger('click'); | |
13 }); |