Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

src/htdocs/js/course_plot.js   A
last analyzed

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 28
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 21
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 4
mnd 0
bc 0
fnc 4
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A course_plot.js ➔ processRemove 0 6 1
1
function processCourse(sectorID) {
2
	var plotCourseForm = document.getElementById('plotCourseForm');
3
	plotCourseForm.to.value = sectorID;
4
	plotCourseForm.submit();
5
}
6
7
function processRemove(sectorID) {
8
	var manageDestination = document.getElementById('manageDestination');
9
	manageDestination.sectorId.value = sectorID;
10
	manageDestination.type.value = 'delete';
11
	manageDestination.submit();
12
}
13
14
$(function() {
15
	$('.draggableObject').draggable({ containment: 'parent' });
16
	$('#droppableObject').droppable({
17
		drop: function(event, ui) {
18
			var manageDestination = document.getElementById('manageDestination'),
19
				sectorID = ui.draggable.data('sector-id'),
20
				pos = ui.draggable.position();
21
			manageDestination.sectorId.value = sectorID;
22
			manageDestination.offsetTop.value = pos.top;
23
			manageDestination.offsetLeft.value = pos.left;
24
			manageDestination.type.value = 'move';
25
			manageDestination.submit();
26
		}
27
	});
28
});
29