Sha256: e11db06385b3c055bef5224347b00398a7332e4b1f51a26e5ebcd1a60b3c9689

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

$(document).ready(function() {
  $('.preview-comment-link').on("click", function(e) {
    var lnk = e.currentTarget;
    var preview_url = lnk.dataset.previewUrl;
    var comment_form_selector = lnk.dataset.targetForm;

    $.post(preview_url, $(comment_form_selector).serialize());
    e.preventDefault();
  });
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
publify_core-10.0.2 app/assets/javascripts/preview_comment.js