Barış Soner Uşaklı
2015-04-07 13:45:46 -04:00
parent 641c8991f9
commit dadbda98b7
6 changed files with 21 additions and 50 deletions

View File

@@ -473,6 +473,19 @@ app.cacheBuster = null;
});
}
app.updateUserStatus = function(el, status) {
if (!el.length) {
return;
}
translator.translate('[[global:' + status + ']]', function(translated) {
el.removeClass('online offline dnd away')
.addClass(status)
.attr('title', translated)
.attr('data-original-title', translated);
});
};
function handleNewTopic() {
$('#content').on('click', '#new_topic', function() {
require(['composer'], function(composer) {