1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

New Events: user_page_item_viewed, user_comment_deleted

News Comment Count now moving up/down accordingly.
This commit is contained in:
Cameron
2016-12-22 10:00:37 -08:00
parent ba9c73ad58
commit 2cb6de6666
6 changed files with 55 additions and 12 deletions

View File

@@ -271,6 +271,8 @@ $(document).ready(function()
$(document).on("click", ".e-comment-delete", function(){
var url = $(this).attr("data-target");
var table = $(this).attr("data-type");
var itemid = $(this).attr("data-itemid");
var sp = $(this).attr('id').split("-");
var id = "#comment-" + sp[3];
var total = parseInt($("#e-comment-total").text());
@@ -278,7 +280,7 @@ $(document).ready(function()
$.ajax({
type: 'POST',
url: url + '?ajax_used=1&mode=delete',
data: { itemid: sp[3] },
data: { id: sp[3], itemid: itemid, table: table },
success: function(data) {
var a = $.parseJSON(data);