mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Right-click to clear slots feature
This commit is contained in:
@@ -83,9 +83,10 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
|
||||
* @param {[type]} slot The slot object belonging to the ship instance
|
||||
* @param {[type]} e The event object
|
||||
*/
|
||||
$scope.select = function(type, slot, e) {
|
||||
$scope.select = function(type, slot, e, id) {
|
||||
console.log('SELECT:', arguments);
|
||||
e.stopPropagation();
|
||||
var id = angular.element(e.target).attr('cpid'); // Get component ID
|
||||
id = id || angular.element(e.target).attr('cpid'); // Get component ID
|
||||
|
||||
if (id) {
|
||||
if (id == 'empty') {
|
||||
|
||||
Reference in New Issue
Block a user