mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
1192d5b671
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92788 467b73ca-7a2a-4603-9d3b-597d59a354a9
15 lines
367 B
JavaScript
Executable File
15 lines
367 B
JavaScript
Executable File
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);
|
|
}
|
|
};
|
|
});
|
|
}); |