mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Fix to component select for firefox
This commit is contained in:
@@ -70,7 +70,8 @@ angular.module('app').controller('OutfitController', ['$rootScope','$scope', '$s
|
||||
*/
|
||||
$scope.select = function(type, slot, e) {
|
||||
e.stopPropagation();
|
||||
var id = angular.element(e.srcElement).attr('cpid'); // Get component ID
|
||||
var id = angular.element(e.target).attr('cpid'); // Get component ID
|
||||
|
||||
if (id) {
|
||||
if (id == 'empty') {
|
||||
ship.use(slot, null, null);
|
||||
|
||||
Reference in New Issue
Block a user