From 21e9db5ea356133bf2940993912e8c294bfbfad3 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Thu, 13 Aug 2015 19:05:15 +0500 Subject: [PATCH] fix doSubmitPost() dynamic declaration --- js/interface_common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/interface_common.js b/js/interface_common.js index 61b9bdc..12b3a75 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -1240,7 +1240,7 @@ function postSubmit(e, oldLastPostId) { } if (btnPostSubmit.hasClass('with-reference')) { - function doSubmitPost(postText, postData) { + var doSubmitPost = function (postText, postData) { newRtMsg(postData, postText); } } else { @@ -1251,7 +1251,7 @@ function postSubmit(e, oldLastPostId) { } } - function doSubmitPost(postText, postData) { + var doSubmitPost = function (postText, postData) { newPostMsg(postText, postData); } }