2010-05-08 04:45:05 +02:00
|
|
|
/**
|
|
|
|
* File: ReportAdmin.Tree.js
|
|
|
|
*/
|
2009-11-21 04:19:59 +01:00
|
|
|
(function($) {
|
2010-04-13 07:55:56 +02:00
|
|
|
$.entwine('ss', function($){
|
2009-11-21 04:19:59 +01:00
|
|
|
/**
|
2010-05-08 04:45:05 +02:00
|
|
|
* Class: #sitetree
|
|
|
|
*
|
|
|
|
* Tree panel.
|
2009-11-21 04:19:59 +01:00
|
|
|
*/
|
2010-05-08 04:45:05 +02:00
|
|
|
$('#sitetree').entwine({
|
2009-11-21 04:18:28 +01:00
|
|
|
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);
|
2009-11-21 04:19:59 +01:00
|
|
|
|
|
|
|
this._super();
|
2009-11-21 04:18:28 +01:00
|
|
|
}
|
2009-11-21 04:19:59 +01:00
|
|
|
});
|
2009-11-21 04:18:28 +01:00
|
|
|
});
|
2009-11-21 04:19:59 +01:00
|
|
|
}(jQuery));
|