commento.js: rename postComment to commentNew

This commit is contained in:
Adhityaa Chandrasekar 2018-09-23 02:31:49 -04:00
parent 4ffdd2cfb6
commit 8500a3f7c6

View File

@ -472,7 +472,7 @@
} }
global.postComment = function(id) { global.commentNew = function(id) {
var textarea = $(ID_TEXTAREA + id); var textarea = $(ID_TEXTAREA + id);
var comment = textarea.value; var comment = textarea.value;
@ -957,7 +957,7 @@
classAdd(submit, "submit-button"); classAdd(submit, "submit-button");
classAdd(el, "button-margin"); classAdd(el, "button-margin");
attrSet(submit, "onclick", "postComment('" + id + "')"); attrSet(submit, "onclick", "commentNew('" + id + "')");
append(el, submit); append(el, submit);
} }