Mercurial > hg > soundsoftware-site
comparison plugins/redmine_bibliography/assets/javascripts/order_authorships.js @ 1365:72b6d7a2383d luisf
JS file needed to order authors; related to previous commit (addresses Bug #668).
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 19 Aug 2013 16:05:50 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1364:4d5d25039a5f | 1365:72b6d7a2383d |
---|---|
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 |