Only return the ID of the first Sone found on the page.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 13 Nov 2011 18:53:29 +0000 (19:53 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 13 Nov 2011 18:53:29 +0000 (19:53 +0100)
src/main/resources/static/javascript/sone.js

index b819333..a3dbc64 100644 (file)
@@ -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();
 }
 
 /**