Total Complexity | 3 |
Complexity/F | 1 |
Lines of Code | 17 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | // Jquery function for order fields |
||
3 | $(document).ready( function(){ |
||
4 | /* Call the container items to reorder directories */ |
||
5 | $("#dir-list").sortable({ |
||
6 | opacity: 0.6, |
||
7 | cursor: "move", |
||
8 | connectWith: "#dir-list", |
||
9 | update: function(event, ui) { |
||
10 | var list = $(this).sortable("serialize"); |
||
11 | $.post("directories.php?op=order", list ); |
||
12 | }, |
||
13 | receive: function(event, ui) { |
||
14 | var list = $(this).sortable("serialize"); |
||
15 | $.post("directories.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.