Revision 1365:72b6d7a2383d plugins
| 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