Fix redraw ownership modal in drive
parent
32f1d1627f
commit
c4dcfc9ccf
|
@ -111,7 +111,7 @@ define([
|
|||
// Remove owner column
|
||||
var drawRemove = function (pending) {
|
||||
var _owners = {};
|
||||
var o = pending ? pending_owners : owners;
|
||||
var o = (pending ? pending_owners : owners) || [];
|
||||
o.forEach(function (ed) {
|
||||
var f;
|
||||
Object.keys(friends).some(function (c) {
|
||||
|
@ -189,6 +189,7 @@ define([
|
|||
err = err || (res && res.error);
|
||||
if (err) {
|
||||
waitFor.abort();
|
||||
redrawAll();
|
||||
return void UI.warn('ERROR' + err);
|
||||
} // XXX
|
||||
UI.log('DONE'); // XXX
|
||||
|
@ -280,6 +281,7 @@ define([
|
|||
err = err || (res && res.error);
|
||||
if (err) {
|
||||
waitFor.abort();
|
||||
redrawAll();
|
||||
return void UI.warn('ERROR' + err);
|
||||
} // XXX
|
||||
}));
|
||||
|
@ -318,7 +320,9 @@ define([
|
|||
redrawAll = function () {
|
||||
if (pending) { return; }
|
||||
pending = true;
|
||||
common.getPadMetadata(null, function (obj) {
|
||||
common.getPadMetadata({
|
||||
channel: data.channel
|
||||
}, function (obj) {
|
||||
pending = false;
|
||||
if (obj && obj.error) { return; }
|
||||
owners = obj.owners;
|
||||
|
|
|
@ -3719,7 +3719,6 @@ define([
|
|||
sframeChan.query('Q_GET_PAD_METADATA', {
|
||||
channel: data.channel
|
||||
}, function (err, val) {
|
||||
console.log(arguments);
|
||||
if (!err && !(val && val.error)) {
|
||||
data.owners = val.owners;
|
||||
data.expire = val.expire;
|
||||
|
|
Loading…
Reference in New Issue