Skip to content

Commit

Permalink
FEATURE: Send javascript events on show and hide of treedropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewandante committed Sep 5, 2012
1 parent 00b6bc8 commit ce68c4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javascript/TreeDropdownField.js
Expand Up @@ -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);
Expand All @@ -100,6 +100,7 @@


this.getPanel().hide();
this.trigger('panelhide');
},
togglePanel: function() {
this[this.getPanel().is(':visible') ? 'closePanel' : 'openPanel']();
Expand Down

0 comments on commit ce68c4a

Please sign in to comment.