aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2009-11-08 22:21:48 -0200
committerSilvio <s1lv10@uol.com.br>2009-11-08 22:21:48 -0200
commit3d0c242182f0c4f46143447c34f1392b4bf3ac60 (patch)
tree5a74892bcdcf68a81f6a85ea667dd1d614109335
parent28af7cf76cba40ef80c0dc9852b2d4034d742fd3 (diff)
downloadfinder_menu-3d0c242182f0c4f46143447c34f1392b4bf3ac60.tar.gz
finder_menu-3d0c242182f0c4f46143447c34f1392b4bf3ac60.tar.bz2
Adding finder javascript hooks for opening and closing events
-rw-r--r--finder_menu.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/finder_menu.js b/finder_menu.js
index 378e743..d7bdf89 100644
--- a/finder_menu.js
+++ b/finder_menu.js
@@ -14,6 +14,7 @@ function ul2finder()
var hideClass='hidden';
var openClass='open';
window.finderOpened = new Object();
+ window.finderHook = new Object();
// check if our finder list exists, if not, stop all activities
finder=document.getElementById('finder');
@@ -76,7 +77,13 @@ function ul2finder()
if (window.finderOpened[this.id] == false) {
changelink('open',this);
cssjs('add',parentUls[0],showClass);
+ if (window.finderHook['open'] !== undefined) {
+ window.finderHook.open(this);
+ }
} else {
+ if (window.finderHook['close'] !== undefined) {
+ window.finderHook.close(this);
+ }
changelink('close',this);
for(var u=0;u<parentUls.length;u++) {
cssjs('remove',parentUls[u],showClass);