remove notifyTyping

v1.18.x
barisusakli 9 years ago
parent dd050c8177
commit 6b341a844d

@ -44,10 +44,7 @@ define('forum/topic/events', [
'posts.unvote': togglePostVote, 'posts.unvote': togglePostVote,
'event:new_notification': onNewNotification, 'event:new_notification': onNewNotification,
'event:new_post': posts.onNewPost, 'event:new_post': posts.onNewPost
'event:topic.notifyTyping': onNotifyTyping,
'event:topic.stopNotifyTyping': onStopNotifyTyping
}; };
Events.init = function() { Events.init = function() {
@ -219,25 +216,5 @@ define('forum/topic/events', [
} }
} }
function onNotifyTyping(data) {
var userEl = $('.thread_active_users [data-uid="' + data.uid + '"]');
userEl.addClass('replying');
var timeoutId = userEl.attr('timeoutId');
if (timeoutId) {
clearTimeout(timeoutId);
timeoutId = 0;
}
timeoutId = setTimeout(function() {
userEl.removeClass('replying');
}, 7000);
userEl.attr('timeoutId', timeoutId);
}
function onStopNotifyTyping(data) {
$('.thread_active_users [data-uid="' + data.uid + '"]').removeClass('replying');
}
return Events; return Events;
}); });

Loading…
Cancel
Save