We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 28 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
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 |