aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--finder_menu.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/finder_menu.js b/finder_menu.js
index 523229c..e6baeff 100644
--- a/finder_menu.js
+++ b/finder_menu.js
@@ -131,7 +131,9 @@ function ul2finder()
* child of parent of the another.
*/
function connected(a,b) {
- if (isparent(a,b) || isparent(b,a)) {
+ if (a == b) {
+ return true;
+ } else if (isparent(a,b) || isparent(b,a)) {
return true;
}
return false;