From: David ‘Bombe’ Roden Date: Sat, 27 Nov 2010 20:23:59 +0000 (+0100) Subject: Use better function to find the nearest Sone element. X-Git-Tag: 0.3.2-RC1~12 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=d5da68f7b4da2f1765242ad6a3ede729d8e77625 Use better function to find the nearest Sone element. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 02a02a8..f80447d 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -256,7 +256,7 @@ function getFormPassword() { } function getSoneElement(element) { - return $(element).parents(".sone"); + return $(element).closest(".sone"); } /**