X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=5232431c62d25971eae0015675eb6111f72fb432;hp=d58f17f6c700b1d2bed3cf597aa6695117ec5960;hb=85a04ddab652b72780027aed2bc356f5f27b240d;hpb=134798ea6e5bc41b664e4180871d47059e450ce8 diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index d58f17f..5232431 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -416,6 +416,17 @@ function getNotificationId(notificationElement) { return $(notificationElement).attr("id"); } +/** + * Returns the time the notification was last updated. + * + * @param notificationElement + * The notification element + * @returns The last update time of the notification + */ +function getNotificationLastUpdatedTime(notificationElement) { + return $(notificationElement).attr("lastUpdatedTime"); +} + function likePost(postId) { $.getJSON("like.ajax", { "type": "post", "post" : postId, "formPassword": getFormPassword() }, function(data, textStatus) { if ((data == null) || !data.success) {