From 51f3b19417f0de87e3ba65a92225a89d6eeb4b48 Mon Sep 17 00:00:00 2001 From: Luke West Date: Thu, 24 Sep 2020 17:13:55 +0100 Subject: [PATCH] append to this.$el rather than generic class --- js/jquery-comments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery-comments.js b/js/jquery-comments.js index 1814098..24f699e 100644 --- a/js/jquery-comments.js +++ b/js/jquery-comments.js @@ -224,7 +224,7 @@ if($.browser.mobile) this.$el.addClass('mobile'); // Init options - this.options = $.extend(true, {}, this.getDefaultOptions(), options);; + this.options = $.extend(true, {}, this.getDefaultOptions(), options); // Read-only mode if(this.options.readOnly) this.$el.addClass('read-only'); @@ -1559,7 +1559,7 @@ return ' ' + tag[0].outerHTML + ' '; }, }], { - appendTo: '.jquery-comments', + appendTo: this.$el, dropdownClassName: 'dropdown autocomplete', maxCount: 5, rightEdgeOffset: 0,