title: Refresh comments after postComment - jquery-comments.js
body: <p>I am using this <a href="https://viima.github.io/jquery-comments/" rel="nofollow noreferrer">jquery-comments plugin</a> for a small conversation functionality. and this works good.</p>
  <p>Only issue is it does not refresh comments after we post a comment and just adds new comment row, so if another person make a comment from his side, it will not show until we refresh full page.</p>
  <p>So i am able to fetch the new comments from database by ajax, which works good.</p>
  <pre><code>getLastestComments: function(){
          var new_comments_array  = null;
          $.ajax({
              url: 'index.php?route=extension/module/getLastestComment&amp;user_token='+ this.options.primaryId,
              async: false,
              success: function(json) {
                 new_comments_array = json['data'];
              },
            });
            return new_comments_array ;
      }
  </code></pre>
  <p><strong>Only</strong> thing i am not able to configure is how can i refresh this Comments(Render Again);
  I have tried, couple of things but no luck. Like inside the <em>postComment : function</em></p>
  <blockquote>
  <p>I adds : this.render() <em>[this function loads on pageload and render
  comments]</em>, this.createComments(), etc.</p>
  </blockquote>
  <pre><code>postComment: function(ev) {
          var self = this;
          var sendButton = $(ev.currentTarget);
          var commentingField = sendButton.parents('.commenting-field').first();
  
          // Set button state to loading
          this.setButtonState(sendButton, false, true);
  
          // alert(this.options.primaryId);
          // Create comment JSON
          var commentJSON = this.createCommentJSON(commentingField);
  
          // Reverse mapping
          commentJSON = this.applyExternalMappings(commentJSON);
  
          var success = function(commentJSON) {
              self.createComment(commentJSON);
              commentingField.find('.close').trigger('click');
  
              // Reset button state
              self.setButtonState(sendButton, false, false);
          };
  
          // this.getComments();
          // self.getComments();
          var error = function() {
  
              // Reset button state
              self.setButtonState(sendButton, true, false);
          };
  
          this.options.postComment(commentJSON, success, error);
          this.options.refresh();
  
          console.log(this.createComments());
           this.render();
           this.createComments();
          // if(this.options.enableAttachments &amp;&amp; this.options.enableNavigation) this.createAttachments();
      },
  </code></pre>
  <p>Quite a simple thing, but Anyone have any guess about this?
  Thanks for your time</p>