From c16689503d2eee42ecff5418a98457b5d7c4a1e5 Mon Sep 17 00:00:00 2001 From: Mega Date: Sat, 31 Jan 2015 15:34:40 +0300 Subject: [PATCH 1/2] Added as argument post id in action:posts.edited --- public/src/client/topic/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.js index 90f54ec064..0990be01c6 100644 --- a/public/src/client/topic/events.js +++ b/public/src/client/topic/events.js @@ -111,7 +111,7 @@ define('forum/topic/events', [ app.replaceSelfLinks(editedPostEl.find('a')); editedPostEl.fadeIn(250); - $(window).trigger('action:posts.edited'); + $(window).trigger('action:posts.edited', data.pid); }); if (data.tags && tagsUpdated(data.tags)) { From 2f19f4106a626bbf4969c4803ccd433813038fec Mon Sep 17 00:00:00 2001 From: Mega Date: Mon, 2 Feb 2015 02:36:17 +0300 Subject: [PATCH 2/2] Added data argument to action:posts.edited hook --- public/src/client/topic/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.js index 0990be01c6..281c63fb1e 100644 --- a/public/src/client/topic/events.js +++ b/public/src/client/topic/events.js @@ -111,7 +111,7 @@ define('forum/topic/events', [ app.replaceSelfLinks(editedPostEl.find('a')); editedPostEl.fadeIn(250); - $(window).trigger('action:posts.edited', data.pid); + $(window).trigger('action:posts.edited', data); }); if (data.tags && tagsUpdated(data.tags)) {