Mark Sones as known by clicking on them.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 20 Jan 2011 08:46:03 +0000 (09:46 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 20 Jan 2011 08:46:03 +0000 (09:46 +0100)
src/main/resources/static/javascript/sone.js

index 9eef811..8f0aef7 100644 (file)
@@ -579,6 +579,11 @@ function ajaxifySone(soneElement) {
                });
                return false;
        });
+
+       /* mark Sone as known when clicking it. */
+       $(soneElement).click(function() {
+               markSoneAsKnown(getSoneId(this));
+       });
 }
 
 /**