From: David ‘Bombe’ Roden Date: Sun, 13 Nov 2011 18:53:29 +0000 (+0100) Subject: Only return the ID of the first Sone found on the page. X-Git-Tag: 0.7.3^2~7 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=b371274f1185ad36e7d450559766678be2cb5fe1 Only return the ID of the first Sone found on the page. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index b819333..a3dbc64 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1347,7 +1347,7 @@ function isViewSonePage() { * @returns The ID of the currently shown Sone */ function getShownSoneId() { - return $("#sone .sone-id").text(); + return $("#sone .sone-id").first().text(); } /**