|
|
@ -64,7 +64,13 @@ define([
|
|
|
|
'code': [
|
|
|
|
'code': [
|
|
|
|
'cp-settings-code-indent-unit',
|
|
|
|
'cp-settings-code-indent-unit',
|
|
|
|
'cp-settings-code-indent-type'
|
|
|
|
'cp-settings-code-indent-type'
|
|
|
|
]
|
|
|
|
],
|
|
|
|
|
|
|
|
'subscription': {
|
|
|
|
|
|
|
|
onClick: function () {
|
|
|
|
|
|
|
|
var urls = common.getMetadataMgr().getPrivateData().accounts;
|
|
|
|
|
|
|
|
window.open(urls.upgradeURL);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (!AppConfig.dislayCreationScreen) {
|
|
|
|
if (!AppConfig.dislayCreationScreen) {
|
|
|
@ -786,12 +792,16 @@ define([
|
|
|
|
if (key === 'code') { $category.append($('<span>', {'class': 'fa fa-file-code-o' })); }
|
|
|
|
if (key === 'code') { $category.append($('<span>', {'class': 'fa fa-file-code-o' })); }
|
|
|
|
if (key === 'pad') { $category.append($('<span>', {'class': 'fa fa-file-word-o' })); }
|
|
|
|
if (key === 'pad') { $category.append($('<span>', {'class': 'fa fa-file-word-o' })); }
|
|
|
|
if (key === 'creation') { $category.append($('<span>', {'class': 'fa fa-plus-circle' })); }
|
|
|
|
if (key === 'creation') { $category.append($('<span>', {'class': 'fa fa-plus-circle' })); }
|
|
|
|
|
|
|
|
if (key === 'subscription') { $category.append($('<span>', {'class': 'fa fa-star-o' })); }
|
|
|
|
|
|
|
|
|
|
|
|
if (key === active) {
|
|
|
|
if (key === active) {
|
|
|
|
$category.addClass('cp-leftside-active');
|
|
|
|
$category.addClass('cp-leftside-active');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$category.click(function () {
|
|
|
|
$category.click(function () {
|
|
|
|
|
|
|
|
if (!Array.isArray(categories[key]) && categories[key].onClick) {
|
|
|
|
|
|
|
|
categories[key].onClick();
|
|
|
|
|
|
|
|
}
|
|
|
|
active = key;
|
|
|
|
active = key;
|
|
|
|
$categories.find('.cp-leftside-active').removeClass('cp-leftside-active');
|
|
|
|
$categories.find('.cp-leftside-active').removeClass('cp-leftside-active');
|
|
|
|
$category.addClass('cp-leftside-active');
|
|
|
|
$category.addClass('cp-leftside-active');
|
|
|
|