|
|
@ -49,6 +49,9 @@ define([
|
|
|
|
'cp-support-language',
|
|
|
|
'cp-support-language',
|
|
|
|
'cp-support-form',
|
|
|
|
'cp-support-form',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'debugging': [
|
|
|
|
|
|
|
|
'cp-support-debugging-data',
|
|
|
|
|
|
|
|
],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var supportKey = ApiConfig.supportMailbox;
|
|
|
|
var supportKey = ApiConfig.supportMailbox;
|
|
|
@ -225,6 +228,16 @@ define([
|
|
|
|
return $div;
|
|
|
|
return $div;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create['debugging-data'] = function () {
|
|
|
|
|
|
|
|
var key = 'debugging-data';
|
|
|
|
|
|
|
|
var $div = makeBlock(key); // Msg.support_debuggingDataTitle.support_debuggingDataHint;
|
|
|
|
|
|
|
|
var data = APP.support.getDebuggingData().sender;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var content = h('pre.debug-data', JSON.stringify(data, null, 2));
|
|
|
|
|
|
|
|
$div.append(content);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $div;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var hideCategories = function () {
|
|
|
|
var hideCategories = function () {
|
|
|
|
APP.$rightside.find('> div').hide();
|
|
|
|
APP.$rightside.find('> div').hide();
|
|
|
@ -237,6 +250,12 @@ define([
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var icons = {
|
|
|
|
|
|
|
|
tickets: 'fa-envelope-o',
|
|
|
|
|
|
|
|
new: 'fa-life-ring',
|
|
|
|
|
|
|
|
debugging: 'fa-wrench',
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var createLeftside = function () {
|
|
|
|
var createLeftside = function () {
|
|
|
|
var $categories = $('<div>', {'class': 'cp-sidebarlayout-categories'})
|
|
|
|
var $categories = $('<div>', {'class': 'cp-sidebarlayout-categories'})
|
|
|
|
.appendTo(APP.$leftside);
|
|
|
|
.appendTo(APP.$leftside);
|
|
|
@ -250,8 +269,12 @@ define([
|
|
|
|
'class': 'cp-sidebarlayout-category',
|
|
|
|
'class': 'cp-sidebarlayout-category',
|
|
|
|
'data-category': key
|
|
|
|
'data-category': key
|
|
|
|
}).appendTo($categories);
|
|
|
|
}).appendTo($categories);
|
|
|
|
if (key === 'tickets') { $category.append($('<span>', {'class': 'fa fa-envelope-o'})); }
|
|
|
|
var iconClass = icons[key];
|
|
|
|
if (key === 'new') { $category.append($('<span>', {'class': 'fa fa-life-ring'})); }
|
|
|
|
if (iconClass) {
|
|
|
|
|
|
|
|
$category.append(h('span', {
|
|
|
|
|
|
|
|
class: 'fa ' + iconClass,
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (key === active) {
|
|
|
|
if (key === active) {
|
|
|
|
$category.addClass('cp-leftside-active');
|
|
|
|
$category.addClass('cp-leftside-active');
|
|
|
|