From 6b341a844d7bf028f28a8999ef4ea9187de29a89 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 19 Feb 2016 09:41:11 +0200 Subject: [PATCH] remove notifyTyping --- public/src/client/topic/events.js | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.js index 21ad1958c3..43aebcfe73 100644 --- a/public/src/client/topic/events.js +++ b/public/src/client/topic/events.js @@ -44,10 +44,7 @@ define('forum/topic/events', [ 'posts.unvote': togglePostVote, 'event:new_notification': onNewNotification, - 'event:new_post': posts.onNewPost, - - 'event:topic.notifyTyping': onNotifyTyping, - 'event:topic.stopNotifyTyping': onStopNotifyTyping + 'event:new_post': posts.onNewPost }; 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; - });