ggoffy /
wgsitenotice
| 1 | // Jquery function for order fields |
||
| 2 | // When the page is loaded define the current order and items to reorder |
||
| 3 | $(document).ready( function(){ |
||
| 4 | /* Call the container items to reorder versions */ |
||
| 5 | $("#versions-list").sortable({ |
||
| 6 | opacity: 0.6, |
||
| 7 | cursor: "move", |
||
| 8 | connectWith: "#versions-list", |
||
| 9 | update: function(event, ui) { |
||
|
0 ignored issues
–
show
|
|||
| 10 | var list = $(this).sortable("serialize"); |
||
| 11 | $.post( "versions.php?op=order", list ); |
||
| 12 | }, |
||
| 13 | receive: function(event, ui) { |
||
|
0 ignored issues
–
show
|
|||
| 14 | var list = $(this).sortable("serialize"); |
||
| 15 | $.post( "versions.php?op=order", list ); |
||
| 16 | } |
||
| 17 | } |
||
| 18 | ).disableSelection(); |
||
| 19 | }); |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.