mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-09-07 02:01:18 +02:00
15 lines
367 B
JavaScript
15 lines
367 B
JavaScript
|
jQuery(function($) {
|
||
|
/**
|
||
|
* @class Tree panel.
|
||
|
* @name ss.sitetree
|
||
|
*/
|
||
|
$('#sitetree').concrete('ss', function($){
|
||
|
return/** @lends ss.sitetree */{
|
||
|
onmatch: function() {
|
||
|
// make sure current ID of loaded form is actually selected in tree
|
||
|
var id = $('#Form_EditForm :input[name=ID]').val();
|
||
|
if (id) this[0].setCurrentByIdx(id);
|
||
|
}
|
||
|
};
|
||
|
});
|
||
|
});
|