To reproduce

- enable the Ideal Comments module
- visit page without comment, get js error "Undefined settings.comments_fold"

CommentFileSizeAuthor
#1 ideal_comments-js_error-2232021-1.patch8.17 KBckng
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ckng’s picture

Status: Active » Needs review
FileSize
8.17 KB

Attached patch
- fixed js break pages that has no comments
- js coding standard
- additional check on js to avoid breaking page js
- properly scope the jquery selector