|
|
@ -1861,6 +1861,13 @@ define([
|
|
|
|
content: h('span', Messages.adminPage || 'Admin')
|
|
|
|
content: h('span', Messages.adminPage || 'Admin')
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (padType !== 'support' && accountName) {
|
|
|
|
|
|
|
|
options.push({
|
|
|
|
|
|
|
|
tag: 'a',
|
|
|
|
|
|
|
|
attributes: {'class': 'cp-toolbar-menu-support fa fa-life-ring'},
|
|
|
|
|
|
|
|
content: h('span', Messages.supportPage || 'Support')
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
// Add login or logout button depending on the current status
|
|
|
|
// Add login or logout button depending on the current status
|
|
|
|
if (accountName) {
|
|
|
|
if (accountName) {
|
|
|
|
options.push({
|
|
|
|
options.push({
|
|
|
@ -1956,6 +1963,13 @@ define([
|
|
|
|
window.parent.location = origin+'/settings/';
|
|
|
|
window.parent.location = origin+'/settings/';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$userAdmin.find('a.cp-toolbar-menu-support').click(function () {
|
|
|
|
|
|
|
|
if (padType) {
|
|
|
|
|
|
|
|
window.open(origin+'/support/');
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
window.parent.location = origin+'/support/';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
$userAdmin.find('a.cp-toolbar-menu-admin').click(function () {
|
|
|
|
$userAdmin.find('a.cp-toolbar-menu-admin').click(function () {
|
|
|
|
if (padType) {
|
|
|
|
if (padType) {
|
|
|
|
window.open(origin+'/admin/');
|
|
|
|
window.open(origin+'/admin/');
|
|
|
|