Revision 1376:6ba24edae331 plugins/redmine_bibliography/assets
| plugins/redmine_bibliography/assets/javascripts/bibliography.js | ||
|---|---|---|
| 1 |
|
|
| 2 |
$("#publication_bibtex_entry_attributes_entry_type").live("change", function() {
|
|
| 3 |
$this = $(this); |
|
| 4 |
|
|
| 5 |
$.ajax({
|
|
| 6 |
type: "get", |
|
| 7 |
url: "/publications/show_bibtex_fields", |
|
| 8 |
data: {
|
|
| 9 |
value: $this.val() |
|
| 10 |
}, |
|
| 11 |
dataType: "script" |
|
| 12 |
}); |
|
| 13 |
|
|
| 14 |
return false; |
|
| 15 |
}); |
|
| 16 |
$(document).ready(function() {
|
|
| 17 |
$("#publication_bibtex_entry_attributes_entry_type").trigger('change');
|
|
| 18 |
}); |
|
| plugins/redmine_bibliography/assets/javascripts/order_authorships.js | ||
|---|---|---|
| 1 |
$(document).ready(function(){
|
|
| 2 |
|
|
| 3 |
$('#authorships').sortable({
|
|
| 4 |
axis: 'y', |
|
| 5 |
dropOnEmpty: false, |
|
| 6 |
handle: '.handle', |
|
| 7 |
cursor: 'crosshair', |
|
| 8 |
items: 'li', |
|
| 9 |
opacity: 0.4, |
|
| 10 |
scroll: true, |
|
| 11 |
update: function(){
|
|
| 12 |
$.ajax({
|
|
| 13 |
type: 'post', |
|
| 14 |
data: $('#authorships').sortable('serialize'),
|
|
| 15 |
dataType: 'script', |
|
| 16 |
complete: function(request){
|
|
| 17 |
$('#authorship').effect('highlight');
|
|
| 18 |
}, |
|
| 19 |
url: '/authorships/sort'}); |
|
| 20 |
} |
|
| 21 |
}); |
|
| 22 |
}); |
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
Also available in: Unified diff