Add a link to the account server for subscribers in settings
parent
c50b8dd3e9
commit
4d0312115a
|
@ -490,6 +490,7 @@ define(function () {
|
|||
out.settings_cat_code = "Code";
|
||||
out.settings_cat_pad = "Documents texte";
|
||||
out.settings_cat_creation = "Nouveau pad";
|
||||
out.settings_cat_subscription = "Abonnement";
|
||||
out.settings_title = "Préférences";
|
||||
out.settings_save = "Sauver";
|
||||
|
||||
|
|
|
@ -495,6 +495,7 @@ define(function () {
|
|||
out.settings_cat_code = "Code";
|
||||
out.settings_cat_pad = "Rich text";
|
||||
out.settings_cat_creation = "New pad";
|
||||
out.settings_cat_subscription = "Subscription";
|
||||
out.settings_title = "Settings";
|
||||
out.settings_save = "Save";
|
||||
|
||||
|
|
|
@ -64,7 +64,13 @@ define([
|
|||
'code': [
|
||||
'cp-settings-code-indent-unit',
|
||||
'cp-settings-code-indent-type'
|
||||
]
|
||||
],
|
||||
'subscription': {
|
||||
onClick: function () {
|
||||
var urls = common.getMetadataMgr().getPrivateData().accounts;
|
||||
window.open(urls.upgradeURL);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if (!AppConfig.dislayCreationScreen) {
|
||||
|
@ -786,12 +792,16 @@ define([
|
|||
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 === 'creation') { $category.append($('<span>', {'class': 'fa fa-plus-circle' })); }
|
||||
if (key === 'subscription') { $category.append($('<span>', {'class': 'fa fa-star-o' })); }
|
||||
|
||||
if (key === active) {
|
||||
$category.addClass('cp-leftside-active');
|
||||
}
|
||||
|
||||
$category.click(function () {
|
||||
if (!Array.isArray(categories[key]) && categories[key].onClick) {
|
||||
categories[key].onClick();
|
||||
}
|
||||
active = key;
|
||||
$categories.find('.cp-leftside-active').removeClass('cp-leftside-active');
|
||||
$category.addClass('cp-leftside-active');
|
||||
|
|
Loading…
Reference in New Issue