We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 | 
| Total Lines | 26 | 
| Code Lines | 16 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | "use strict";  | 
            ||
| 15 | function setupDragDrop() { | 
            ||
| 16 | |||
| 17 | // Make the Location images draggable elements  | 
            ||
| 18 | 	$(".drag_loc").draggable({ | 
            ||
| 19 | addClasses: false,  | 
            ||
| 20 | revert: "invalid",  | 
            ||
| 21 | cursor: "move",  | 
            ||
| 22 | });  | 
            ||
| 23 | |||
| 24 | // The draggable elements can be dropped into any sector  | 
            ||
| 25 | 	$(".lm_sector").droppable({ | 
            ||
| 26 | addClasses: false,  | 
            ||
| 27 | accept: ".drag_loc",  | 
            ||
| 28 | 		drop: function(event, ui) { | 
            ||
| 29 | 			var href = ui.draggable.data("href"); | 
            ||
| 30 | 			var data = { | 
            ||
| 31 | ajax: 1,  | 
            ||
| 32 | 				TargetSectorID: $(this).find(".lmsector").text(), | 
            ||
| 33 | 				OrigSectorID: ui.draggable.data("sector"), | 
            ||
| 34 | 				LocationTypeID: ui.draggable.data("loc"), | 
            ||
| 35 | };  | 
            ||
| 36 | ajaxLink(href, setupDragDrop, data);  | 
            ||
| 37 | },  | 
            ||
| 38 | });  | 
            ||
| 39 | |||
| 40 | }  | 
            ||
| 41 |