Mark the correct sone as known.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 11 Apr 2011 10:30:50 +0000 (12:30 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 11 Apr 2011 10:30:50 +0000 (12:30 +0200)
This fixes #142.

src/main/resources/static/javascript/sone.js

index d60ee23..056369c 100644 (file)
@@ -666,7 +666,7 @@ function ajaxifySone(soneElement) {
 
        /* mark Sone as known when clicking it. */
        $(soneElement).click(function() {
-               markSoneAsKnown(soneElement);
+               markSoneAsKnown(this);
        });
 }