', {'class': 'usage'}).appendTo(APP.$leftside);
var active = privateData.category || 'account';
Object.keys(categories).forEach(function (key) {
- var $category = $('
', {'class': 'cp-sidebarlayout-category'}).appendTo($categories);
+ var $category = $('
', {
+ 'class': 'cp-sidebarlayout-category',
+ 'data-category': key
+ }).appendTo($categories);
if (key === 'account') { $category.append($('', {'class': 'fa fa-user-o'})); }
if (key === 'drive') { $category.append($('', {'class': 'fa fa-hdd-o'})); }
if (key === 'cursor') { $category.append($('', {'class': 'fa fa-i-cursor' })); }