From ce68c4a8707d03982dbf68e6aec675e864ef7b6f Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Mon, 20 Aug 2012 13:28:03 +1200 Subject: [PATCH] FEATURE: Send javascript events on show and hide of treedropdown --- javascript/TreeDropdownField.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/TreeDropdownField.js b/javascript/TreeDropdownField.js index 35bd5692d..d303b894e 100644 --- a/javascript/TreeDropdownField.js +++ b/javascript/TreeDropdownField.js @@ -84,7 +84,7 @@ .addClass('ui-icon-triangle-1-n'); if(tree.is(':empty')) this.loadTree(); - + this.trigger('panelshow'); }, closePanel: function() { jQuery('body').unbind('click', _clickTestFn); @@ -100,6 +100,7 @@ this.getPanel().hide(); + this.trigger('panelhide'); }, togglePanel: function() { this[this.getPanel().is(':visible') ? 'closePanel' : 'openPanel']();