@ -31,6 +31,14 @@ Ext.define('Rambox.store.ServicesList', {
// ,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("infinite-list-item"),b=0;for(i=0;i<a.length;i++)if(!(a[i].getElementsByClassName("icon-muted").length>0||0===a[i].getElementsByClassName("unread-count").length)){var c=parseInt(a[i].getElementsByClassName("unread-count")[0].innerHTML.trim());b+=isNaN(c)?0:c}updateBadge(b)}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}var originalTitle=document.title;setInterval(checkUnread,1e3);'
// ,dont_update_unread_from_title: true
// },
{
id : 'trello' ,
logo : 'trello.png' ,
name : 'Trello' ,
description : 'Infinitely flexible. Incredibly easy to use. Great mobile apps. It\'s free. Trello keeps track of everything, from the big picture to the minute details.' ,
url : 'https://trello.com/login' ,
type : 'mitglieder'
} ,
{
id : 'slack'
, logo : 'slack.png'
@ -40,6 +48,16 @@ Ext.define('Rambox.store.ServicesList', {
, type : 'mitglieder'
, js _unread : 'function checkUnread(){var a=0,b=0;$(".unread_msgs").each(function(){a+=isNaN(parseInt($(this).html())) ? 0 : parseInt($(this).html())}),$(".unread_highlights").each(function(){b+=isNaN(parseInt($(this).html())) ? 0 : parseInt($(this).html())}),updateBadge(a,b)}function updateBadge(a,b){var c=b>0?"("+b+") ":a>0?"(•) ":"";document.title=c+originalTitle}var originalTitle=document.title;setInterval(checkUnread,3000);'
} ,
{
id : 'discourse'
, logo : 'discourse.png'
, name : 'Discourse'
, type : 'mitglieder'
, custom _domain : true
, allow _popups : true
, url : "https://___"
, js _unread : 'function checkUnread(){var a=0,b=0;document.querySelector(".widget-link.badge-notification.unread-private-messages")&&(a=parseInt(document.querySelector(".widget-link.badge-notification.unread-private-messages").title,10)),document.querySelector(".widget-link.badge-notification.unread-notifications")&&(b=parseInt(document.querySelector(".widget-link.badge-notification.unread-notifications").title,10)),updateBadge(a+b)}function updateBadge(a){document.title=a>=1?"("+a+") "+originalTitle:originalTitle}var originalTitle=document.title;setInterval(checkUnread,3e3);'
} ,
// {
// id: 'noysi'
// ,logo: 'noysi.png'
@ -763,13 +781,5 @@ Ext.define('Rambox.store.ServicesList', {
// ,url: 'https://___.jandi.com/'
// ,type: 'messaging'
// },
{
id : 'trello' ,
logo : 'trello.png' ,
name : 'Trello' ,
description : 'Infinitely flexible. Incredibly easy to use. Great mobile apps. It\'s free. Trello keeps track of everything, from the big picture to the minute details.' ,
url : 'https://trello.com/login' ,
type : 'mitglieder'
}
]
} ) ;