aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);