|
|
@ -340,9 +340,10 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
$('<span>', { 'class': 'label' }).text(Messages.settings_userFeedbackTitle).appendTo($div);
|
|
|
|
$('<span>', { 'class': 'label' }).text(Messages.settings_userFeedbackTitle).appendTo($div);
|
|
|
|
|
|
|
|
|
|
|
|
$('<span>', { 'class': 'cp-sidebarlayout-description' })
|
|
|
|
$div.append(h('span.cp-sidebarlayout-description', [
|
|
|
|
.append(Messages.settings_userFeedbackHint1)
|
|
|
|
Messages.settings_userFeedbackHint1,
|
|
|
|
.append(Messages.settings_userFeedbackHint2).appendTo($div);
|
|
|
|
Messages.settings_userFeedbackHint2,
|
|
|
|
|
|
|
|
]));
|
|
|
|
|
|
|
|
|
|
|
|
var $ok = $('<span>', { 'class': 'fa fa-check', title: Messages.saved });
|
|
|
|
var $ok = $('<span>', { 'class': 'fa fa-check', title: Messages.saved });
|
|
|
|
var $spinner = $('<span>', { 'class': 'fa fa-spinner fa-pulse' });
|
|
|
|
var $spinner = $('<span>', { 'class': 'fa fa-spinner fa-pulse' });
|
|
|
@ -851,9 +852,9 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
$('<span>', { 'class': 'label' }).text(Messages.settings_driveRedirectTitle).appendTo($div);
|
|
|
|
$('<span>', { 'class': 'label' }).text(Messages.settings_driveRedirectTitle).appendTo($div);
|
|
|
|
|
|
|
|
|
|
|
|
$('<span>', { 'class': 'cp-sidebarlayout-description' })
|
|
|
|
$div.append(h('span', {
|
|
|
|
.append(Messages.settings_driveRedirectHint)
|
|
|
|
class: 'cp-sidebarlayout-description',
|
|
|
|
.appendTo($div);
|
|
|
|
}, Messages.settings_driveRedirectHint));
|
|
|
|
|
|
|
|
|
|
|
|
var $ok = $('<span>', { 'class': 'fa fa-check', title: Messages.saved });
|
|
|
|
var $ok = $('<span>', { 'class': 'fa fa-check', title: Messages.saved });
|
|
|
|
var $spinner = $('<span>', { 'class': 'fa fa-spinner fa-pulse' });
|
|
|
|
var $spinner = $('<span>', { 'class': 'fa fa-spinner fa-pulse' });
|
|
|
@ -1719,16 +1720,22 @@ define([
|
|
|
|
var active = privateData.category || 'account';
|
|
|
|
var active = privateData.category || 'account';
|
|
|
|
if (!categories[active]) { active = 'account'; }
|
|
|
|
if (!categories[active]) { active = 'account'; }
|
|
|
|
Object.keys(categories).forEach(function(key) {
|
|
|
|
Object.keys(categories).forEach(function(key) {
|
|
|
|
var $category = $('<div>', {
|
|
|
|
|
|
|
|
'class': 'cp-sidebarlayout-category',
|
|
|
|
|
|
|
|
'data-category': key
|
|
|
|
|
|
|
|
}).appendTo($categories);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var iconClass = SIDEBAR_ICONS[key];
|
|
|
|
var iconClass = SIDEBAR_ICONS[key];
|
|
|
|
|
|
|
|
var icon;
|
|
|
|
if (iconClass) {
|
|
|
|
if (iconClass) {
|
|
|
|
$category.append($('<span>', { 'class': iconClass }));
|
|
|
|
icon = h('span', {
|
|
|
|
|
|
|
|
class: iconClass,
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var $category = $(h('div.cp-sidebarlayout-category', {
|
|
|
|
|
|
|
|
'data-category': key
|
|
|
|
|
|
|
|
}, [
|
|
|
|
|
|
|
|
icon,
|
|
|
|
|
|
|
|
Messages['settings_cat_' + key] || key,
|
|
|
|
|
|
|
|
])).appendTo($categories);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (key === active) {
|
|
|
|
if (key === active) {
|
|
|
|
$category.addClass('cp-leftside-active');
|
|
|
|
$category.addClass('cp-leftside-active');
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1744,8 +1751,6 @@ define([
|
|
|
|
$category.addClass('cp-leftside-active');
|
|
|
|
$category.addClass('cp-leftside-active');
|
|
|
|
showCategories(categories[key]);
|
|
|
|
showCategories(categories[key]);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$category.append(Messages['settings_cat_' + key] || key);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
showCategories(categories[active]);
|
|
|
|
showCategories(categories[active]);
|
|
|
|
common.setHash(active);
|
|
|
|
common.setHash(active);
|
|
|
|