2010-05-08 04:45:05 +02:00
|
|
|
/**
|
|
|
|
* File: ReportAdmin.Tree.js
|
|
|
|
*/
|
2009-11-21 04:19:59 +01:00
|
|
|
(function($) {
|
2012-05-18 02:09:47 +02:00
|
|
|
$.entwine('ss.tree', function($){
|
2009-11-21 04:19:59 +01:00
|
|
|
/**
|
2011-04-17 10:04:46 +02:00
|
|
|
* Class: .cms-tree
|
2010-05-08 04:45:05 +02:00
|
|
|
*
|
|
|
|
* Tree panel.
|
2009-11-21 04:19:59 +01:00
|
|
|
*/
|
2011-04-17 10:04:46 +02:00
|
|
|
$('.cms-tree').entwine({
|
2009-11-21 04:18:28 +01:00
|
|
|
onmatch: function() {
|
|
|
|
// make sure current ID of loaded form is actually selected in tree
|
2011-03-31 10:51:59 +02:00
|
|
|
var id = $('.cms-edit-form :input[name=ID]').val();
|
2009-11-21 04:18:28 +01:00
|
|
|
if (id) this[0].setCurrentByIdx(id);
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2012-05-11 07:37:31 +02:00
|
|
|
this._super();
|
|
|
|
},
|
|
|
|
onunmatch: function() {
|
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
|
|
|
});
|
2012-05-11 07:37:31 +02:00
|
|
|
}(jQuery));
|