fix doSubmitPost() dynamic declaration

This commit is contained in:
Simon Grim 2015-08-13 19:05:15 +05:00
parent f251cf0949
commit 21e9db5ea3

View File

@ -1240,7 +1240,7 @@ function postSubmit(e, oldLastPostId) {
} }
if (btnPostSubmit.hasClass('with-reference')) { if (btnPostSubmit.hasClass('with-reference')) {
function doSubmitPost(postText, postData) { var doSubmitPost = function (postText, postData) {
newRtMsg(postData, postText); newRtMsg(postData, postText);
} }
} else { } else {
@ -1251,7 +1251,7 @@ function postSubmit(e, oldLastPostId) {
} }
} }
function doSubmitPost(postText, postData) { var doSubmitPost = function (postText, postData) {
newPostMsg(postText, postData); newPostMsg(postText, postData);
} }
} }