X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=a039211152c96a750ea68e0d8933a9854c598934;hb=ceb38cee1b72faa92a9a0222bba421ed61d78930;hp=4277d9a1f3a622667eb47abb6125fa2476fb8872;hpb=7c56ff62990b690bc1031e27b4e95eb8fc9fc721;p=Sone.git diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 4277d9a..a039211 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -308,6 +308,10 @@ function getPostId(element) { return getPostElement(element).attr("id"); } +function getPostTime(element) { + return getPostElement(element).find(".storage-time").text(); +} + function getReplyElement(element) { return $(element).parents(".reply"); } @@ -316,6 +320,10 @@ function getReplyId(element) { return getReplyElement(element).attr("id"); } +function getReplyTime(element) { + return getReplyElement(element).find(".storage-time").text(); +} + function likePost(postId) { $.getJSON("ajax/like.ajax", { "type": "post", "post" : postId, "formPassword": getFormPassword() }, function(data, textStatus) { if ((data == null) || !data.success) {