silverstripe-reports/javascript/ReportAdmin.Tree.js
Ingo Schommer 168589a59f MINOR Updated jQuery.concrete references to point to the new "entwine" name
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102697 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-04-13 05:55:56 +00:00

17 lines
401 B
JavaScript
Executable File

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