|
|
@ -63,9 +63,11 @@ define([
|
|
|
|
create['all'] = function () {
|
|
|
|
create['all'] = function () {
|
|
|
|
var key = 'all';
|
|
|
|
var key = 'all';
|
|
|
|
var $div = makeBlock(key);
|
|
|
|
var $div = makeBlock(key);
|
|
|
|
|
|
|
|
var dismissAll = h("div.cp-app-notifications-dismissall.cp-clickable", { title: Messages.dismissAll || "Dismiss All" }, h("span.fa.fa-trash"));
|
|
|
|
|
|
|
|
var titleButtons = h("div.cp-app-notifications-panel-titlebar-buttons", dismissAll);
|
|
|
|
var notifsTitlebar = h('div.cp-app-notifications-panel-titlebar', [
|
|
|
|
var notifsTitlebar = h('div.cp-app-notifications-panel-titlebar', [
|
|
|
|
h("span.cp-app-notifications-panel-title", (Messages.notifications || "Notifications") + " - " + key),
|
|
|
|
h("span.cp-app-notifications-panel-title", (Messages.notifications || "Notifications") + " - " + key),
|
|
|
|
h("div.cp-app-notifications-panel-titlebar-buttons")
|
|
|
|
titleButtons
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
var notifsList = h("div.cp-app-notifications-panel-list");
|
|
|
|
var notifsList = h("div.cp-app-notifications-panel-list");
|
|
|
|
var notifsPanel = h("div.cp-app-notifications-panel", [
|
|
|
|
var notifsPanel = h("div.cp-app-notifications-panel", [
|
|
|
@ -107,7 +109,7 @@ define([
|
|
|
|
Object.keys(categories).forEach(function (key) {
|
|
|
|
Object.keys(categories).forEach(function (key) {
|
|
|
|
var $category = $('<div>', {'class': 'cp-sidebarlayout-category'}).appendTo($categories);
|
|
|
|
var $category = $('<div>', {'class': 'cp-sidebarlayout-category'}).appendTo($categories);
|
|
|
|
if (key === 'all') { $category.append($('<span>', {'class': 'fa fa-bars'})); }
|
|
|
|
if (key === 'all') { $category.append($('<span>', {'class': 'fa fa-bars'})); }
|
|
|
|
if (key === 'friends') { $category.append($('<span>', {'class': 'fa fa-user-plus'})); }
|
|
|
|
if (key === 'friends') { $category.append($('<span>', {'class': 'fa fa-user'})); }
|
|
|
|
if (key === 'pads') { $category.append($('<span>', {'class': 'cptools cptools-pad'})); }
|
|
|
|
if (key === 'pads') { $category.append($('<span>', {'class': 'cptools cptools-pad'})); }
|
|
|
|
|
|
|
|
|
|
|
|
if (key === active) {
|
|
|
|
if (key === active) {
|
|
|
|