Use better function to find the nearest Sone element.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 27 Nov 2010 20:23:59 +0000 (21:23 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 27 Nov 2010 20:23:59 +0000 (21:23 +0100)
src/main/resources/static/javascript/sone.js

index 02a02a8..f80447d 100644 (file)
@@ -256,7 +256,7 @@ function getFormPassword() {
 }
 
 function getSoneElement(element) {
-       return $(element).parents(".sone");
+       return $(element).closest(".sone");
 }
 
 /**