mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-09-01 15:27:42 +02:00
21 lines
411 B
JavaScript
21 lines
411 B
JavaScript
/**
|
|
* File: ReportAdmin.Tree.js
|
|
*/
|
|
(function($) {
|
|
$.entwine('ss', function($){
|
|
/**
|
|
* Class: .cms-tree
|
|
*
|
|
* Tree panel.
|
|
*/
|
|
$('.cms-tree').entwine({
|
|
onmatch: function() {
|
|
// make sure current ID of loaded form is actually selected in tree
|
|
var id = $('.cms-edit-form :input[name=ID]').val();
|
|
if (id) this[0].setCurrentByIdx(id);
|
|
|
|
this._super();
|
|
}
|
|
});
|
|
});
|
|
}(jQuery)); |