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
|
|
|
/**
|
|
|
|
* @class Tree panel.
|
|
|
|
* @name ss.sitetree
|
|
|
|
*/
|
2010-04-13 07:55:56 +02:00
|
|
|
$('#sitetree').entwine(/** @lends ss.sitetree */{
|
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));
|