Only return the ID of the first Sone found on the page.
[Sone.git] / 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();
 }
 
 /**