templates: fix JS error for comment form in anonymous mode.
This commit is contained in:
parent
e03415a797
commit
812a98e03e
1 changed files with 3 additions and 1 deletions
|
|
@ -289,7 +289,9 @@
|
|||
var mainCommentForm = new CommentForm(
|
||||
"#${form_id}", commitId, pullRequestId, lineNo, true);
|
||||
|
||||
mainCommentForm.cm.setOption('placeholder', "${placeholder}");
|
||||
if (mainCommentForm.cm){
|
||||
mainCommentForm.cm.setOption('placeholder', "${placeholder}");
|
||||
}
|
||||
|
||||
mainCommentForm.initStatusChangeSelector();
|
||||
bindToggleButtons();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue