From 3d0c242182f0c4f46143447c34f1392b4bf3ac60 Mon Sep 17 00:00:00 2001 From: Silvio Date: Sun, 8 Nov 2009 22:21:48 -0200 Subject: Adding finder javascript hooks for opening and closing events --- finder_menu.js | 7 +++++++ 1 file changed, 7 insertions(+) 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