# HG changeset patch # User luisf # Date 1376924750 -3600 # Node ID 72b6d7a2383d3c969fabfbe6f3df82cea623a191 # Parent 4d5d25039a5f1836c990c7627e1a9683f780d27c JS file needed to order authors; related to previous commit (addresses Bug #668). diff -r 4d5d25039a5f -r 72b6d7a2383d plugins/redmine_bibliography/assets/javascripts/order_authorships.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/redmine_bibliography/assets/javascripts/order_authorships.js Mon Aug 19 16:05:50 2013 +0100 @@ -0,0 +1,28 @@ +$(document).ready(function(){ + + $('#authorships').sortable({ + axis: 'y', + dropOnEmpty: false, + handle: '.handle', + cursor: 'crosshair', + items: 'li', + opacity: 0.4, + scroll: true, + update: function(){ + $.ajax({ + type: 'post', + data: $('#authorships').sortable('serialize'), + dataType: 'script', + complete: function(request){ + $('#authorship').effect('highlight'); + }, + url: '/authorships/sort'}); + } + }); + }); + + + + + +