Move inner files
This commit is contained in:
parent
10f97354fe
commit
ff895bbc82
@ -14,7 +14,7 @@ define([
|
|||||||
'/customize/application_config.js',
|
'/customize/application_config.js',
|
||||||
'/customize/pages.js',
|
'/customize/pages.js',
|
||||||
'/bower_components/nthen/index.js',
|
'/bower_components/nthen/index.js',
|
||||||
'/common/invitation.js',
|
'/common/inner/invitation.js',
|
||||||
|
|
||||||
'css!/customize/fonts/cptools/style.css',
|
'css!/customize/fonts/cptools/style.css',
|
||||||
'/bower_components/croppie/croppie.min.js',
|
'/bower_components/croppie/croppie.min.js',
|
||||||
@ -100,33 +100,6 @@ define([
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
var getPropertiesData = function (common, cb) {
|
|
||||||
var data = {};
|
|
||||||
NThen(function (waitFor) {
|
|
||||||
var base = common.getMetadataMgr().getPrivateData().origin;
|
|
||||||
common.getPadAttribute('', waitFor(function (err, val) {
|
|
||||||
if (err || !val) {
|
|
||||||
waitFor.abort();
|
|
||||||
return void cb(err || 'EEMPTY');
|
|
||||||
}
|
|
||||||
if (!val.fileType) {
|
|
||||||
delete val.owners;
|
|
||||||
delete val.expire;
|
|
||||||
}
|
|
||||||
Util.extend(data, val);
|
|
||||||
if (data.href) { data.href = base + data.href; }
|
|
||||||
if (data.roHref) { data.roHref = base + data.roHref; }
|
|
||||||
}));
|
|
||||||
common.getPadMetadata(null, waitFor(function (obj) {
|
|
||||||
if (obj && obj.error) { return; }
|
|
||||||
data.owners = obj.owners;
|
|
||||||
data.expire = obj.expire;
|
|
||||||
data.pending_owners = obj.pending_owners;
|
|
||||||
}));
|
|
||||||
}).nThen(function () {
|
|
||||||
cb(void 0, data);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var createOwnerModal = function (common, data) {
|
var createOwnerModal = function (common, data) {
|
||||||
var friends = common.getFriends(true);
|
var friends = common.getFriends(true);
|
||||||
var sframeChan = common.getSframeChannel();
|
var sframeChan = common.getSframeChannel();
|
||||||
@ -436,6 +409,7 @@ define([
|
|||||||
}];
|
}];
|
||||||
return UI.dialog.customModal(link, {buttons: linkButtons});
|
return UI.dialog.customModal(link, {buttons: linkButtons});
|
||||||
};
|
};
|
||||||
|
|
||||||
var getRightsProperties = function (common, data, cb) {
|
var getRightsProperties = function (common, data, cb) {
|
||||||
var $div = $('<div>');
|
var $div = $('<div>');
|
||||||
if (!data) { return void cb(void 0, $div); }
|
if (!data) { return void cb(void 0, $div); }
|
||||||
@ -864,6 +838,34 @@ define([
|
|||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var getPropertiesData = function (common, cb) {
|
||||||
|
var data = {};
|
||||||
|
NThen(function (waitFor) {
|
||||||
|
var base = common.getMetadataMgr().getPrivateData().origin;
|
||||||
|
common.getPadAttribute('', waitFor(function (err, val) {
|
||||||
|
if (err || !val) {
|
||||||
|
waitFor.abort();
|
||||||
|
return void cb(err || 'EEMPTY');
|
||||||
|
}
|
||||||
|
if (!val.fileType) {
|
||||||
|
delete val.owners;
|
||||||
|
delete val.expire;
|
||||||
|
}
|
||||||
|
Util.extend(data, val);
|
||||||
|
if (data.href) { data.href = base + data.href; }
|
||||||
|
if (data.roHref) { data.roHref = base + data.roHref; }
|
||||||
|
}));
|
||||||
|
common.getPadMetadata(null, waitFor(function (obj) {
|
||||||
|
if (obj && obj.error) { return; }
|
||||||
|
data.owners = obj.owners;
|
||||||
|
data.expire = obj.expire;
|
||||||
|
data.pending_owners = obj.pending_owners;
|
||||||
|
}));
|
||||||
|
}).nThen(function () {
|
||||||
|
cb(void 0, data);
|
||||||
|
});
|
||||||
|
};
|
||||||
UIElements.getProperties = function (common, data, cb) {
|
UIElements.getProperties = function (common, data, cb) {
|
||||||
var c1;
|
var c1;
|
||||||
var c2;
|
var c2;
|
||||||
|
|||||||
@ -15,7 +15,7 @@ define([
|
|||||||
'/common/hyperscript.js',
|
'/common/hyperscript.js',
|
||||||
'/customize/application_config.js',
|
'/customize/application_config.js',
|
||||||
'/common/messenger-ui.js',
|
'/common/messenger-ui.js',
|
||||||
'/common/invitation.js',
|
'/common/inner/invitation.js',
|
||||||
'/customize/messages.js',
|
'/customize/messages.js',
|
||||||
|
|
||||||
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user