Revision 1389:641ec1b288a6 plugins
| plugins/redmine_bibliography/assets/javascripts/edit_publication.js | ||
|---|---|---|
| 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 |
}); |
|
| plugins/redmine_bibliography/assets/javascripts/new_publication.js | ||
|---|---|---|
| 1 |
// edit_publication.js |
|
| 2 |
|
|
| 3 |
$(document).ready(function(){
|
|
| 4 |
// adds the events to the edit/save authorship button |
|
| 5 |
$('.author_save_btn').live('click', disable_fields);
|
|
| 6 |
$('.author_edit_btn').live('click', enable_fields);
|
|
| 7 |
}); |
|
Also available in: Unified diff