|
|
@ -343,10 +343,7 @@ define([
|
|
|
|
return arr;
|
|
|
|
return arr;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// delete fc_openInCode // XXX
|
|
|
|
|
|
|
|
var createContextMenu = function (common) {
|
|
|
|
var createContextMenu = function (common) {
|
|
|
|
// XXX PREMIUM
|
|
|
|
|
|
|
|
// XXX "Edit in Document" and "New Document" (and presentation)
|
|
|
|
|
|
|
|
var getOpenIn = function (app) {
|
|
|
|
var getOpenIn = function (app) {
|
|
|
|
var icon = AppConfig.applicationsIcon[app];
|
|
|
|
var icon = AppConfig.applicationsIcon[app];
|
|
|
|
var cls = icon.indexOf('cptools') === 0 ? 'cptools '+icon : 'fa '+icon;
|
|
|
|
var cls = icon.indexOf('cptools') === 0 ? 'cptools '+icon : 'fa '+icon;
|
|
|
@ -1290,9 +1287,6 @@ define([
|
|
|
|
hide.push('openincode');
|
|
|
|
hide.push('openincode');
|
|
|
|
hide.push('preview');
|
|
|
|
hide.push('preview');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($element.is('.cp-border-color-sheet')) {
|
|
|
|
|
|
|
|
//hide.push('download'); // XXX if we don't want to enable this feature yet
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($element.is('.cp-app-drive-static')) {
|
|
|
|
if ($element.is('.cp-app-drive-static')) {
|
|
|
|
hide.push('access', 'hashtag', 'properties', 'download');
|
|
|
|
hide.push('access', 'hashtag', 'properties', 'download');
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2914,7 +2908,6 @@ define([
|
|
|
|
'href': '#'
|
|
|
|
'href': '#'
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// XXX PREMIUM
|
|
|
|
|
|
|
|
var premium = common.checkRestrictedApp(type);
|
|
|
|
var premium = common.checkRestrictedApp(type);
|
|
|
|
if (premium < 0) {
|
|
|
|
if (premium < 0) {
|
|
|
|
attributes.class += ' cp-app-hidden cp-app-disabled';
|
|
|
|
attributes.class += ' cp-app-hidden cp-app-disabled';
|
|
|
@ -3249,7 +3242,6 @@ define([
|
|
|
|
.text(Messages.type[type]));
|
|
|
|
.text(Messages.type[type]));
|
|
|
|
$element.attr('data-type', type);
|
|
|
|
$element.attr('data-type', type);
|
|
|
|
|
|
|
|
|
|
|
|
// XXX PREMIUM
|
|
|
|
|
|
|
|
var premium = common.checkRestrictedApp(type);
|
|
|
|
var premium = common.checkRestrictedApp(type);
|
|
|
|
if (premium < 0) {
|
|
|
|
if (premium < 0) {
|
|
|
|
$element.addClass('cp-app-hidden cp-app-disabled');
|
|
|
|
$element.addClass('cp-app-hidden cp-app-disabled');
|
|
|
|