aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2009-12-22 20:39:34 -0200
committerSilvio <s1lv10@uol.com.br>2009-12-22 20:39:34 -0200
commit872ca4b5462b97e5e9afba5e6a77abd20502dd15 (patch)
tree75c115b24fd30636721b30f81fb6306c4b0cb85a
parent3d0c242182f0c4f46143447c34f1392b4bf3ac60 (diff)
downloadfinder_menu-872ca4b5462b97e5e9afba5e6a77abd20502dd15.tar.gz
finder_menu-872ca4b5462b97e5e9afba5e6a77abd20502dd15.tar.bz2
Making the child menu appear at the same level of the parent
-rw-r--r--finder_menu.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/finder_menu.js b/finder_menu.js
index d7bdf89..c3a90cb 100644
--- a/finder_menu.js
+++ b/finder_menu.js
@@ -75,8 +75,14 @@ function ul2finder()
// open or close a given finder tab
if (window.finderOpened[this.id] == false) {
+ // change properites
changelink('open',this);
cssjs('add',parentUls[0],showClass);
+
+ // make the child menu appear at the same level of the parent
+ $(parentUls[0]).css('top', $(this).position().top + 'px');
+
+ // execute open hook
if (window.finderHook['open'] !== undefined) {
window.finderHook.open(this);
}