silverstripe-reports/javascript/ReportAdmin.Tree.js
2009-11-21 03:19:59 +00:00

17 lines
403 B
JavaScript
Executable File

(function($) {
$.concrete('ss', function($){
/**
* @class Tree panel.
* @name ss.sitetree
*/
$('#sitetree').concrete(/** @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);
this._super();
}
});
});
}(jQuery));