mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-11 08:43:02 +00:00
Handle select edge-case
This commit is contained in:
@@ -151,8 +151,10 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
|
|||||||
while (elem && elem !== e.currentTarget && !elem.getAttribute('cpid')) {
|
while (elem && elem !== e.currentTarget && !elem.getAttribute('cpid')) {
|
||||||
elem = elem.parentElement;
|
elem = elem.parentElement;
|
||||||
}
|
}
|
||||||
|
if (elem) {
|
||||||
id = elem.getAttribute('cpid');
|
id = elem.getAttribute('cpid');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (id) {
|
if (id) {
|
||||||
if (id == 'empty') {
|
if (id == 'empty') {
|
||||||
|
|||||||
Reference in New Issue
Block a user