Use the Sone element as parameter, not its ID.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 20 Jan 2011 12:44:15 +0000 (13:44 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 20 Jan 2011 12:44:15 +0000 (13:44 +0100)
src/main/resources/static/javascript/sone.js

index 8f0aef7..a673f8c 100644 (file)
@@ -582,7 +582,7 @@ function ajaxifySone(soneElement) {
 
        /* mark Sone as known when clicking it. */
        $(soneElement).click(function() {
-               markSoneAsKnown(getSoneId(this));
+               markSoneAsKnown(soneElement);
        });
 }