Use better function to find the nearest Sone element.
[Sone.git] / 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");
 }
 
 /**