mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #772 from ajoneil/treedropdownfield-js-events
FEATURE: Send javascript events on show and hide of treedropdown
This commit is contained in:
commit
beb2933b95
@ -84,7 +84,7 @@
|
|||||||
.addClass('ui-icon-triangle-1-n');
|
.addClass('ui-icon-triangle-1-n');
|
||||||
|
|
||||||
if(tree.is(':empty')) this.loadTree();
|
if(tree.is(':empty')) this.loadTree();
|
||||||
|
this.trigger('panelshow');
|
||||||
},
|
},
|
||||||
closePanel: function() {
|
closePanel: function() {
|
||||||
jQuery('body').unbind('click', _clickTestFn);
|
jQuery('body').unbind('click', _clickTestFn);
|
||||||
@ -100,6 +100,7 @@
|
|||||||
|
|
||||||
|
|
||||||
this.getPanel().hide();
|
this.getPanel().hide();
|
||||||
|
this.trigger('panelhide');
|
||||||
},
|
},
|
||||||
togglePanel: function() {
|
togglePanel: function() {
|
||||||
this[this.getPanel().is(':visible') ? 'closePanel' : 'openPanel']();
|
this[this.getPanel().is(':visible') ? 'closePanel' : 'openPanel']();
|
||||||
|
Loading…
Reference in New Issue
Block a user