mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-28 21:46:10 +02:00
18 lines
386 B
JavaScript
18 lines
386 B
JavaScript
|
(function($) {
|
||
|
$.entwine('ss', function($){
|
||
|
|
||
|
// Any TreeDowndownField needs to refresh it's contents after a form submission,
|
||
|
// because the tree on the backend might have changed
|
||
|
$('.TreeDropdownField').entwine({
|
||
|
'from .cms-container form': {
|
||
|
onaftersubmitform: function(e){
|
||
|
this.find('.tree-holder').empty();
|
||
|
this._super();
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
})(jQuery);
|