From aaabdaed69f38c9e2e2a7c6df8d3108179a5c05c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 22 Jun 2015 06:01:54 +0300 Subject: [PATCH] fixed open events... Signed-off-by: Alex A. Naanou --- ui (gen4)/experiments/browse-dialog.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/experiments/browse-dialog.js b/ui (gen4)/experiments/browse-dialog.js index 7ab8664a..b3316806 100755 --- a/ui (gen4)/experiments/browse-dialog.js +++ b/ui (gen4)/experiments/browse-dialog.js @@ -820,8 +820,6 @@ var BrowserPrototype = { var res = this.open(path) - this.trigger('open', path) - return res }, @@ -833,7 +831,12 @@ var BrowserPrototype = { open: function(path){ path = path || this.path var m = this.options.open - return m ? m.apply(this, arguments) : path + var res = m ? m.apply(this, arguments) : path + + this.trigger('open', path) + elem.trigger('open') + + return res }, // List the path...