WebContent/js/explore/spaces.js
/**
 * Called when a draggable item (primitive) is dropped on the trash can
 * @author Todd Elvers
 */
Called when a draggable item (primitive) is dropped on the trash can
@author Todd Elvers
Called when a draggable item ( primitive ) is dropped on the trash can @author Todd Elvers
function onTrashDrop(event, ui) {
	var ids = getSelectedRows($(ui.draggable).parents('table:first'));
	ownsAll = userCanDeleteAll($(ui.draggable).parents('table:first'));
	if (ids.length < 2) {
		ids = [ui.draggable.data('id')];
	}
	switch (ui.draggable.data('type')) {
		case "user":
			removeUsers(ids);
			break;
		case "solver":
			removeSolvers(ids, ownsAll);
			break;
		case "space":
			removeSubspaces(ids);
			break;
		case "benchmark":
			removeBenchmarks(ids, ownsAll);
			break;
		case "job":
			removeJobs(ids, ownsAll);
			break;
	}
}
function onTrashDrop ( event , ui ) { var ids = getSelectedRows ( $ ( ui . draggable ) . parents ( 'table:first' ) ) ; ownsAll = userCanDeleteAll ( $ ( ui . draggable ) . parents ( 'table:first' ) ) ; if ( ids . length < 2 ) { ids = [ ui . draggable . data ( 'id' ) ] ; } switch ( ui . draggable . data ( 'type' ) ) { case "user" : removeUsers ( ids ) ; break ; case "solver" : removeSolvers ( ids , ownsAll ) ; break ; case "space" : removeSubspaces ( ids ) ; break ; case "benchmark" : removeBenchmarks ( ids , ownsAll ) ; break ; case "job" : removeJobs ( ids , ownsAll ) ; break ; } }
Called when a draggable item (primitive) is dropped on the trash can
 @author Todd Elvers
Called when a draggable item ( primitive ) is dropped on the trash can @author Todd Elvers
// Collect the selected elements from the table being dragged from
 // If 0 or 1 things are selected in the table, just use the element that is being dragged
 // Call the appropriate primitive removal function
 //actual Remove called within here
