Issues (525)

assets/js/sortable-versions.js (4 issues)

Severity
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
The parameter event is not used and could be removed.

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.

Loading history...
The parameter ui is not used and could be removed.

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.

Loading history...
10
				var list = $(this).sortable("serialize");
11
				$.post( "versions.php?op=order", list );
12
			},
13
			receive: function(event, ui) {
0 ignored issues
show
The parameter event is not used and could be removed.

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.

Loading history...
The parameter ui is not used and could be removed.

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.

Loading history...
14
				var list = $(this).sortable("serialize");                    
15
				$.post( "versions.php?op=order", list );                      
16
			}
17
		}
18
	).disableSelection();
19
});