mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FEATURE: Send javascript events on show and hide of treedropdown
This commit is contained in:
parent
00b6bc86e2
commit
ce68c4a870
@ -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']();
|
||||
|
Loading…
Reference in New Issue
Block a user