From: David ‘Bombe’ Roden Date: Tue, 10 Jan 2012 09:53:07 +0000 (+0100) Subject: Only use the first ID. X-Git-Tag: 0.8^2~37 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8d7400f3774c9f7881f7d3cbc971abe4b97d5121;p=Sone.git Only use the first ID. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index e271246..6afb232 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -874,7 +874,7 @@ function ajaxifyPost(postElement) { } }); (function(postElement) { - var soneId = $(".sone-menu-id", postElement).text(); + var soneId = $(".sone-menu-id:first", postElement).text(); $(".sone-post-menu .follow", postElement).click(function() { var followElement = this; ajaxGet("followSone.ajax", { "sone": soneId, "formPassword": getFormPassword() }, function() {