silverstripe-cms/javascript/ReportAdmin.Tree.js
Ingo Schommer ecbee33385 ENHANCEMENT Moved cms/javascript documentation from JSDoc to NaturalDocs format
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@104369 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-05-08 02:45:05 +00:00

21 lines
411 B
JavaScript
Executable File

/**
* File: ReportAdmin.Tree.js
*/
(function($) {
$.entwine('ss', function($){
/**
* Class: #sitetree
*
* Tree panel.
*/
$('#sitetree').entwine({
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);
this._super();
}
});
});
}(jQuery));