|
|
@ -349,6 +349,12 @@ define([
|
|
|
|
if (!reload) { return; }
|
|
|
|
if (!reload) { return; }
|
|
|
|
Modal.loadMetadata(Env, data, waitFor, "owner");
|
|
|
|
Modal.loadMetadata(Env, data, waitFor, "owner");
|
|
|
|
}).nThen(function () {
|
|
|
|
}).nThen(function () {
|
|
|
|
|
|
|
|
var owned = Modal.isOwned(Env, data);
|
|
|
|
|
|
|
|
if (typeof(owned) !== "boolean") {
|
|
|
|
|
|
|
|
teamOwner = Number(owned);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
teamOwner = undefined;
|
|
|
|
|
|
|
|
}
|
|
|
|
owners = data.owners || [];
|
|
|
|
owners = data.owners || [];
|
|
|
|
pending_owners = data.pending_owners || [];
|
|
|
|
pending_owners = data.pending_owners || [];
|
|
|
|
$div1.empty();
|
|
|
|
$div1.empty();
|
|
|
@ -667,6 +673,12 @@ define([
|
|
|
|
if (!reload) { return; }
|
|
|
|
if (!reload) { return; }
|
|
|
|
Modal.loadMetadata(Env, data, waitFor, "allow");
|
|
|
|
Modal.loadMetadata(Env, data, waitFor, "allow");
|
|
|
|
}).nThen(function () {
|
|
|
|
}).nThen(function () {
|
|
|
|
|
|
|
|
var owned = Modal.isOwned(Env, data);
|
|
|
|
|
|
|
|
if (typeof(owned) !== "boolean") {
|
|
|
|
|
|
|
|
teamOwner = Number(owned);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
teamOwner = undefined;
|
|
|
|
|
|
|
|
}
|
|
|
|
owners = data.owners || [];
|
|
|
|
owners = data.owners || [];
|
|
|
|
restricted = data.restricted || false;
|
|
|
|
restricted = data.restricted || false;
|
|
|
|
allowed = data.allowed || [];
|
|
|
|
allowed = data.allowed || [];
|
|
|
|